When installing IIS in Windows Server 2016, I encountered the following prompts
Open PowerShell and execute the following command
-
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
When the third command is executed, install the relevant software and wait patiently for the installation to complete.
When the installation is complete, the following prompt will appear
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True No Success {.NET Framework 3.5 (包括 .NET 2.0 和 3.0), ....