This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop the Windows Update service | |
Stop-Service -Name wuauserv | |
# Remove the registry key | |
Remove-Item HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate -Recurse | |
# Start the Windows Update service | |
Start-Service -name wuauserv |