Last active
March 28, 2025 20:26
PowerShell Script to Bypass Local WSUS Server and Pull Updates Straight from the Internet. #PowerShell
This file contains 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 |
Worked for me as well! Thank you!
Be careful with this method, as it can remove GPO-related restrictions like automatic updates scheduling, or disabled automatic updates. A more fine-grained approach would be:
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value 0
Restart-Service -name wuauserv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Worked like a charm updating Azure Stack HCI 21H2 to 22H2 when node is connected to WSUS by GPO. At current date WSUS don't support Azure Stack HCI feature update.