Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing pening updated from the command line?

Status
Not open for further replies.

dbrb2

Instructor
Jul 19, 2004
121
GB
When a W7 machine has pending updates, I can install them by choosing the "install updates and shut down" from the desktop

However, if I call "shutdown /t 0" from the command line of the same machine, the updates are not installed - the machine justs shuts down
Is there a way to shutdown and install updates from the command line in a W7 machine?
 
No.




Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Damn. That sounds like a right pain. I wonder if it is oversight or by design...
I'm not sure why I would want to shut the machine down without installing the updates most of the time, so surprised the default seems to be the other way around

Oh well...
 
You could bake your own version - use
Code:
start /wait %windir%\system32\wuauclt.exe /detectnow /updatenow
to invoke Windows Update from the command line, then when that's finished run the shutdown command.

I haven't tried this so don't know whether Windows Update would be in interactive mode. You might be able to leave out the /detectnow parameter. This Technet page lists some wuauclt.exe parameters that work on Windows 7, even though the page is about Server 2003.

Nelviticus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top