Jump to content

WSUS - How to push through all your WSUS updates from CMD line on demand


Recommended Posts

Posted

In case anyone is in a similar situation where I was recently where there was only a small timeframe to roll out a vast number of Windows Updates and cant wait days for them to update each night according to schedule, below is a command line that will force them to look for updates, install them reboot, install updates.

 

If you grab PStools and WUInstall you can use the command line below kick them all off. Put WUinstall.exe in netlogon.

If you highlight all your computers needing an update and paste into excel, save the computer names only as a CSV (list.cvs)

 

psexec.exe @C:\pstools\list.csv -c -s - \\server\netlogon\WUInstall.exe /search /install /reboot_if_needed /rebootcycle 3

 

It will run through each computer in the list forcing the updates, rebooting and updating.

 

PS. I set the reboot cycle to 3 but if you have a huge number of updates this may need to be higher.

  • Thanks 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...