I know that there is a simple way to shutdown the computer in command prompt, but is it possible to do system updates and then shutdown the computer in command prompt?
For example, when Vista needs to install updates, it will let me install them and shut down by clicking the Shut Down
button (while relegating the normal shut down button into the menu). So is there a command to do this in command prompt?
Best Answer
There is no inbuilt command-line way to force install of waiting updates before shutdown/reboot (I've heard rumor that it's in Windows 8, but haven't checked).
You're best bet is to create a script (VBS, PowerScript, or alike) which will perform the updates and then shut the system down.
For example: