Windows Server 上安装IIS服务时,报错缺少源文件!

打开Widwos PowerShell,在控制台执行一下命令:

Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name UseWUServer -Value 0
Restart-Service -Name wuauserv

Install-WindowsFeature Net-Framework-Core
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name UseWUServer -Value 1
Restart-Service -Name wuauserv


posted @ 2021-11-14 11:45  leidegaga  阅读(794)  评论(0)    收藏  举报