powershell安装.net3.5

Set-ItemProperty -Path 'HKLM:SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU' -Name UseWUServer -Value 0
Restart-Service -Name wuauserv
Install-WindowsFeature Net-Framework-Core
Set-ItemProperty -Path 'HKLM:SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU' -Name UseWUServer -Value 1
Restart-Service -Name wuauserv
原文地址:https://www.cnblogs.com/Anthony518/p/12016598.html