Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to shutdown and apply updates via DOS command

30 Jan 2012   #1
motc7

 
 
How to shutdown and apply updates via DOS command

I am having a hard time finding an answer to this on the forums and the net in general. If I goto Start/Shutdown, and there is the exclamation mark on it, it will apply any updates and shutdown the computer. Simple Enough right?

Well, I want to know what are the DOS commands to do such a thing in Windows 7? I have tried the shutdown.exe /s command and that shuts down the computer, but doesn't apply any pending updates.

I do not have a GPO that is overriding this. I've looked and it's not configured.


Any help is appreciated.


My System SpecsSystem Spec
.
30 Jan 2012   #2
motc7

 
 

anyone?
My System SpecsSystem Spec
30 Jan 2012   #3
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Open a command prompt with elevated privileges then type help at the prompt for a list of commands available.

As for doing exactly what you are suggesting I just don't know - perhaps a DOS expert may come up with a solution.

You might find this useful: http://pcsupport.about.com/od/comman...s-commands.htm

More info here: http://en.wikipedia.org/wiki/List_of_MS-DOS_commands
My System SpecsSystem Spec
.

30 Jan 2012   #4
motc7

 
 

Quote   Quote: Originally Posted by seavixen32 View Post
Open a command prompt with elevated privileges then type help at the prompt for a list of commands available.

As for doing exactly what you are suggesting I just don't know - perhaps a DOS expert may come up with a solution.

You might find this useful: Complete List of DOS Commands (MS-DOS Commands)

More info here: List of MS-DOS commands - Wikipedia, the free encyclopedia
Sorry but I have typed in that help command in DOS and when I try to follow the syntax, it's still not working.
My System SpecsSystem Spec
30 Jan 2012   #5
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

You need to open the command prompt window with elevated privileges first.

Click Start, type cmd in the Search field, and then right-click cmd under Programs and choose Run as Administrator.
My System SpecsSystem Spec
30 Jan 2012   #6
motc7

 
 

Quote   Quote: Originally Posted by seavixen32 View Post
You need to open the command prompt window with elevated privileges first.

Click Start, type cmd in the Search field, and then right-click cmd under Programs and choose Run as Administrator.
I am the domain administrator on my domain admin machine.
My System SpecsSystem Spec
30 Jan 2012   #7
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

When I type in Help, I get this:

-help.jpg

When I type in Shutdown I get this:

-help2.jpg

That's about the limit of my expertise on this one, so I'm hoping someone else will chip in.


My System SpecsSystem Spec
30 Jan 2012   #8
TJG

Windows 7 Home Premium 32bits
 
 

When Windows 7 updates during start/shutdown, it is NOT in DOS but still in windows enviroment with most things shut down.

TJG
My System SpecsSystem Spec
31 Jan 2012   #9
alphanumeric

Windows 10 Education 64 bit
 
 

This may sound nit picky, but it is NOT DOS, its a command shell. Windows 98 was the last version of Windows based on MS DOS. Sorry, its just one of my pet peeves.
My System SpecsSystem Spec
31 Jan 2012   #10
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Quote   Quote: Originally Posted by alphanumeric View Post
This may sound nit picky, but it is NOT DOS, its a command shell. Windows 98 was the last version of Windows based on MS DOS. Sorry, its just one of my pet peeves.
You're quite right of course.

As for being nit picky, I'm just the same myself, so thanks for pointing this out.
My System SpecsSystem Spec
Reply

 How to shutdown and apply updates via DOS command




Thread Tools




Similar help and support threads
Thread Forum
Win7 takes forever to apply updates
Hey everyone. I do not think I am alone on this problem. My computer has become a little "old" applying updates. When it actually did "download" the updates, it restarted and when it booted up to install the updates, it took three hours. After three hours, it failed to install updates and reverted...
Windows Updates & Activation
5 Windows Updates Won't Apply; Win7 Home Premium, 6.1.7601
I'm running (Dell OEM) Win7 Home Premium on a Dell Inspiron 5520. The machine's used for dev work and runs a VM in Parallels Workstation, has sundry techy nonsense installed like python, nxlog, wireshark, git/svn. Antivirus is F-Secure; had Avast! instead for a while but it interfered with VMs. ...
Windows Updates & Activation
How do you apply a folder's view settings and apply it to ALL others
For example I have a folder in my desktop with pictures, videos, documents, music, etc. I organized it by grouping by type, somewhere between large & extra large thumbnails, and a few other things. I want these settings applied to all other folders. I went to folder options and applied it to other...
Customization
Shutdown command problem
hi all i am making a shortcut for shutdown . so i m using command shutdown -h for hibernate shutdown -l for logoff but whenever i use time for it like shutdown -h -t 120 where t 120 is number of secs after which the command will execute then the command doesnt executes
General Discussion
Shutdown command in DOS for delayed hibernation
I'd like to be able to set a timer for delayed hibernation of my computer (so it can play music while I fall asleep). The command should be: shutodown \h \t 999 Why doesn't it work? It works for: shutodown \s \t 999 but I want it to hibernate, not shutdown. Can anyone help?
Software
Apply updates
How do you apply updates for your windows 7 install? I don't know.. Wondered if you could tell me,, it's annoying getting updates after reinstall
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:03.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App