How to shutdown and apply updates via DOS command

motc7

ZAHAL
Power User
Local time
2:32 PM
Messages
369
Location
FEMA Region 6
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 Computer My Computer

At a glance

Windows 7Core i78 GBATI FireGL
Computer Manufacturer/Model Number
HP Pavilion dv7
OS
Windows 7
CPU
Core i7
Memory
8 GB
Graphics Card(s)
ATI FireGL
Monitor(s) Displays
Secondary is an HP L1940T
Screen Resolution
1680x1050
Hard Drives
160 GB SSD and 500 GB SATA
Keyboard
G11 Logitech
Mouse
G7 Logitech
Internet Speed
Fiber
Other Info
My rig smegging rules!
anyone?
 

My Computer My Computer

At a glance

Windows 7Core i78 GBATI FireGL
Computer Manufacturer/Model Number
HP Pavilion dv7
OS
Windows 7
CPU
Core i7
Memory
8 GB
Graphics Card(s)
ATI FireGL
Monitor(s) Displays
Secondary is an HP L1940T
Screen Resolution
1680x1050
Hard Drives
160 GB SSD and 500 GB SATA
Keyboard
G11 Logitech
Mouse
G7 Logitech
Internet Speed
Fiber
Other Info
My rig smegging rules!

My Computer My Computer

At a glance

Windows 7 Ultimate SP1 64-BitIntel Core i7 870 @ 2.93GHz8Gb Dual-Channel DDR3 @ 664MHznVidia GeForce GTX 460 1024MB dedicated RAM
Computer Manufacturer/Model Number
HP Pavilion Elite 495UK
OS
Windows 7 Ultimate SP1 64-Bit
CPU
Intel Core i7 870 @ 2.93GHz
Motherboard
MSI 2A9C (CPU1)
Memory
8Gb Dual-Channel DDR3 @ 664MHz
Graphics Card(s)
nVidia GeForce GTX 460 1024MB dedicated RAM
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP2310i
Screen Resolution
1920 x 1080
Hard Drives
1x1954GB Hitachi HDS22020ALA 330 (RAID), 1x1954GB Hitachi External for backup and storage
PSU
460W
Case
HP Elite
Cooling
Air cooled
Keyboard
Logitech K750 solar-powered keyboard
Mouse
Logitech Wireless M180 mouse
Internet Speed
2Mb
Other Info
Pure Avanti Flow Internet Radio with iPod Dock, 64Gb iPod, HP USB Speakers, Sony MDR-V500 Headphones, Sony Vaio F-Series Laptop
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 Computer My Computer

At a glance

Windows 7Core i78 GBATI FireGL
Computer Manufacturer/Model Number
HP Pavilion dv7
OS
Windows 7
CPU
Core i7
Memory
8 GB
Graphics Card(s)
ATI FireGL
Monitor(s) Displays
Secondary is an HP L1940T
Screen Resolution
1680x1050
Hard Drives
160 GB SSD and 500 GB SATA
Keyboard
G11 Logitech
Mouse
G7 Logitech
Internet Speed
Fiber
Other Info
My rig smegging rules!
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 Computer My Computer

At a glance

Windows 7 Ultimate SP1 64-BitIntel Core i7 870 @ 2.93GHz8Gb Dual-Channel DDR3 @ 664MHznVidia GeForce GTX 460 1024MB dedicated RAM
Computer Manufacturer/Model Number
HP Pavilion Elite 495UK
OS
Windows 7 Ultimate SP1 64-Bit
CPU
Intel Core i7 870 @ 2.93GHz
Motherboard
MSI 2A9C (CPU1)
Memory
8Gb Dual-Channel DDR3 @ 664MHz
Graphics Card(s)
nVidia GeForce GTX 460 1024MB dedicated RAM
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP2310i
Screen Resolution
1920 x 1080
Hard Drives
1x1954GB Hitachi HDS22020ALA 330 (RAID), 1x1954GB Hitachi External for backup and storage
PSU
460W
Case
HP Elite
Cooling
Air cooled
Keyboard
Logitech K750 solar-powered keyboard
Mouse
Logitech Wireless M180 mouse
Internet Speed
2Mb
Other Info
Pure Avanti Flow Internet Radio with iPod Dock, 64Gb iPod, HP USB Speakers, Sony MDR-V500 Headphones, Sony Vaio F-Series Laptop
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 Computer My Computer

At a glance

Windows 7Core i78 GBATI FireGL
Computer Manufacturer/Model Number
HP Pavilion dv7
OS
Windows 7
CPU
Core i7
Memory
8 GB
Graphics Card(s)
ATI FireGL
Monitor(s) Displays
Secondary is an HP L1940T
Screen Resolution
1680x1050
Hard Drives
160 GB SSD and 500 GB SATA
Keyboard
G11 Logitech
Mouse
G7 Logitech
Internet Speed
Fiber
Other Info
My rig smegging rules!
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 Computer My Computer

At a glance

Windows 7 Ultimate SP1 64-BitIntel Core i7 870 @ 2.93GHz8Gb Dual-Channel DDR3 @ 664MHznVidia GeForce GTX 460 1024MB dedicated RAM
Computer Manufacturer/Model Number
HP Pavilion Elite 495UK
OS
Windows 7 Ultimate SP1 64-Bit
CPU
Intel Core i7 870 @ 2.93GHz
Motherboard
MSI 2A9C (CPU1)
Memory
8Gb Dual-Channel DDR3 @ 664MHz
Graphics Card(s)
nVidia GeForce GTX 460 1024MB dedicated RAM
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP2310i
Screen Resolution
1920 x 1080
Hard Drives
1x1954GB Hitachi HDS22020ALA 330 (RAID), 1x1954GB Hitachi External for backup and storage
PSU
460W
Case
HP Elite
Cooling
Air cooled
Keyboard
Logitech K750 solar-powered keyboard
Mouse
Logitech Wireless M180 mouse
Internet Speed
2Mb
Other Info
Pure Avanti Flow Internet Radio with iPod Dock, 64Gb iPod, HP USB Speakers, Sony MDR-V500 Headphones, Sony Vaio F-Series Laptop
When Windows 7 updates during start/shutdown, it is NOT in DOS but still in windows enviroment with most things shut down.

TJG :)
 

My Computer My Computer

At a glance

Windows 7 Home Premium 32bitsIntel Pentium 4 521DDR2 4096MBytesATI Radeon HD 2400 Series
Computer Manufacturer/Model Number
Dell Dimension E510
OS
Windows 7 Home Premium 32bits
CPU
Intel Pentium 4 521
Motherboard
Dell Inc. ORD203
Memory
DDR2 4096MBytes
Graphics Card(s)
ATI Radeon HD 2400 Series
Sound Card
On-Board Sigma Tel High Definition Audio
Monitor(s) Displays
Dell ST2210 1920x1080x60 hertz
Hard Drives
320 SATA
500 SATA
PSU
Antec 430 Watts
Case
Dell
Cooling
Standard Fans
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. :) :zip:
:focus:
 

My Computer My Computer

At a glance

Windows 10 Education 64 bitAMD Phenom II X4 980 Black Edition Deneb 3.7GHz8GB 4GBx2 Kingston PC10600 DDR3 1333 MemoryZotac NVIDIA Geforce GT640 2 Gig DDR3 PCIe
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Built
OS
Windows 10 Education 64 bit
CPU
AMD Phenom II X4 980 Black Edition Deneb 3.7GHz
Motherboard
Asus M4N68T-M V2 µATX Motherboard
Memory
8GB 4GBx2 Kingston PC10600 DDR3 1333 Memory
Graphics Card(s)
Zotac NVIDIA Geforce GT640 2 Gig DDR3 PCIe
Sound Card
VIA VT1708s High Definition Audio 8-channel Onboard
Monitor(s) Displays
22" LG E2242 1080p and 2 19" I-INC AG191D
Screen Resolution
1280x1024 - 1920x1080 - 1280x1024
Hard Drives
Crucial M100 256 GB SSD and 500 GB WD Blue SATA
PSU
Thermaltake TR 620
Case
Power Up Black ATX Mid-Tower Case
Cooling
Stock heatsink and fan
Keyboard
Logitech Wireless K350 Wave
Mouse
Logitech Wireless M570 Trackman Wheel
Internet Speed
80 Mbps Down 30 Mbps Up
Antivirus
Windows Defender
Browser
Internet Explorer 11
Other Info
HP DVD1040e Lightscribe - External USB2
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. :) :zip:
:focus:

You're quite right of course.

As for being nit picky, I'm just the same myself, so thanks for pointing this out. :)
 

My Computer My Computer

At a glance

Windows 7 Ultimate SP1 64-BitIntel Core i7 870 @ 2.93GHz8Gb Dual-Channel DDR3 @ 664MHznVidia GeForce GTX 460 1024MB dedicated RAM
Computer Manufacturer/Model Number
HP Pavilion Elite 495UK
OS
Windows 7 Ultimate SP1 64-Bit
CPU
Intel Core i7 870 @ 2.93GHz
Motherboard
MSI 2A9C (CPU1)
Memory
8Gb Dual-Channel DDR3 @ 664MHz
Graphics Card(s)
nVidia GeForce GTX 460 1024MB dedicated RAM
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP2310i
Screen Resolution
1920 x 1080
Hard Drives
1x1954GB Hitachi HDS22020ALA 330 (RAID), 1x1954GB Hitachi External for backup and storage
PSU
460W
Case
HP Elite
Cooling
Air cooled
Keyboard
Logitech K750 solar-powered keyboard
Mouse
Logitech Wireless M180 mouse
Internet Speed
2Mb
Other Info
Pure Avanti Flow Internet Radio with iPod Dock, 64Gb iPod, HP USB Speakers, Sony MDR-V500 Headphones, Sony Vaio F-Series Laptop
to shutdown a computer in Ms-Dos Type this shutdown -s, to cancel it quickly type shutdown -a, although you cannot update windows in dos mode but you can update the group policies to do that type gpupdate.... this is supported in all Microsoft windows edition.......Thanks;)
 

My Computer My Computer

At a glance

---
OS
---
how to shutdown and upgrade in ms-dos mode

to shutdown a computer in Ms-Dos Type this shutdown -s, to cancel it quickly type shutdown -a, although you cannot update windows in dos mode but you can update the group policies to do that type gpupdate.... this is supported in all Microsoft windows edition.......Thanks;)[/QUOTE]
 

My Computer My Computer

At a glance

---
OS
---
Back
Top