comman line to install updates,

Soldato
Joined
17 Jul 2008
Posts
7,391
Does anyone know a way from a command line install all MS patches that are waiting and reboot the machine?

We have about 50 servers we have to log into and 'install updates' then reboot them. THe patches are deployed via wsus but we cannot use the auto reboot function as the servers have to restart in the right order.

thanks in advance for any suggestions
 
if youre running WSUS then:

wuauclt.exe /detectnow

will go off and check for updates with your WSUS server.

edit - misread what you were after. is there not a group policy setting thatll let you start off the update with the windows update screen and then auto reboot? i cant remember without looking..
 
Last edited:
set the servers to install automatically? What I have configured is WSUS downloads the updates and filters them. They are then installed automatically on the target machines which then prompt for reboot rather than automatically.

Doing it this way you only have to reboot them, which is easily scriptable if you have telnet/SSH enabled on them. E.G with a VB script using Wshell comands to do the equivalent of a "shutdown -r " then a wscript wait XXX seconds then the same for server 2 etc.
The prompting for reboot here is done via group policy... not sure if it can be done another way in WSUS, never tried.
 
Back
Top Bottom