Window Update Via PowerShell

  • Set Proxy

netsh winhttp set proxy proxy-server="hqproxy:80" bypass-list="*;192.168.*.*;"
restart-service wuauserv
  • Enable Windows Update Repository:

Set-ExecutionPolicy RemoteSigned -Force
Install-PackageProvider -Name NuGet -MinimumVersion -Force
Install-Module PSWindowsUpdate -Force
Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d -Confirm:$false
  • Run Windows Update from PowerShell (repeat this command multiple times until no more updates are available):

Get-WUInstall -MicrosoftUpdate -AcceptAll -AutoReboot -IgnoreUserInput -Install -Confirm:$false

# Manual Download of Updates and Execute of any Failed packages
Import-Module BitsTransfer
$url = ""
$output = "C:\temp\KB4480977.msu"
Start-BitsTransfer -Source $url -Destination $output
C:\temp\KB4480977.msu /quiet

Leave a Reply

Your email address will not be published. Required fields are marked *