I'm under the impression that it isn't possible to install Windows Updates using the shutdown command, and a little Googling seems to confirm this.
I've been using this as our shutdown policy for several months: %WinDir%\System32\shutdown.exe /s /t 90 /d p:04:01. Works perfectly for just shutting down machines at the end of the school day, but the updates being rolled out by our WSUS server every Thursday at 16:00 are not installing on shutdown. We do get the odd report of a PC taking forever to boot up at the beginning of a lesson because someone the lesson before shut it down manually after finishing using it and when it's turned back on it wants to finish installing 19 updates.
I'm guessing I'll have to get a little creative with this, so here I am fishing for advice. VBS or PS scripts? Any tips?
I used to use this scrip Windows Update Agent force script, email results version 2.6 - Script Center - Spiceworks by Rob Dunn. I hard coded in all the options I needed so I didnít have to pass any parameters.
You could try calling this script before the shutdown, or schedule a separate task and call it before so it has time to pull the updates.
There are currently 1 users browsing this thread. (0 members and 1 guests)