Cmd line commands

Semisane

New member
Local time
6:48 PM
Messages
2
Hi there

First post on this forum :)

I have an issue with the command line of Windows 7. Whenever I type in the shutdown command in an elevated console, I simply get a list of available arguments.

Similar to typing shutdown /?

Any advice would be much appreciated

Thanks
 

My Computer

Computer Manufacturer/Model Number
MSI
OS
Windows 7 Ultimate RTM
CPU
Core 2 Duo 2.66 GHZ
Motherboard
DG33U
Memory
4 GB Kingston (800 MHZ)
Graphics Card(s)
Nvidia GTX 260 (896 MB RAM)
Monitor(s) Displays
Samsung Syncmaster 2333
Hard Drives
1TB WD
250 GB Seagate
PSU
550 W
Case
Standard
Cooling
Standard
Hmm...I have never tried to shutdown the computer from the command line before.

I didn't even know that it's possible.
 

My Computer

Computer Manufacturer/Model Number
Custom
OS
Windows 7 Home Premium 64
CPU
Core i7 870 2.93 GHz
Motherboard
Gigabyte P55A-UD3
Memory
16 GB G-Skills DDR3 1333
Graphics Card(s)
ASUS GTX 680 DirectCu-II Top
Sound Card
Realtek 5.1 audio
Monitor(s) Displays
Samsung 23" widescreen
Screen Resolution
2048x1152
Hard Drives
OCZ Vertex III 128 GB (primary)
OCZ Vertex II 128 GB (data)
PSU
Corsair 650W
Case
CoolerMaster HAF 920
Cooling
Arctic Cooling Freezer 7 Pro
Keyboard
DAS Model S Ultimate keyboard
Mouse
Logitech G5 gaming mouse
Internet Speed
Cable
Browser
Chrome
Other Info
Built in December 2010
Hello Semisane, and welcome to Seven Forums.

Normally you have to type shutdown with a switch like shutdown /f or shutdown -f for this. When typing shutdown by itself, it is the same as typing the shutdown /? command.

See top No args item below.
Shutdown_switches.jpg
If you would like a shutdown shortcut, you can use the one below if you like.

Shutdown shortcut - Vista Forums

Hope this helps,
Shawn
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Hi Semisane and welcome to Windows 7 Forums :party:

This might explain it. As you can see, entering the command without any parameters defaults to showing the help for it.
Capture.PNG
Exactly what is it you are trying to do?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
I learn something here every day. :)
 

My Computer

Computer Manufacturer/Model Number
Custom
OS
Windows 7 Home Premium 64
CPU
Core i7 870 2.93 GHz
Motherboard
Gigabyte P55A-UD3
Memory
16 GB G-Skills DDR3 1333
Graphics Card(s)
ASUS GTX 680 DirectCu-II Top
Sound Card
Realtek 5.1 audio
Monitor(s) Displays
Samsung 23" widescreen
Screen Resolution
2048x1152
Hard Drives
OCZ Vertex III 128 GB (primary)
OCZ Vertex II 128 GB (data)
PSU
Corsair 650W
Case
CoolerMaster HAF 920
Cooling
Arctic Cooling Freezer 7 Pro
Keyboard
DAS Model S Ultimate keyboard
Mouse
Logitech G5 gaming mouse
Internet Speed
Cable
Browser
Chrome
Other Info
Built in December 2010

My Computer

Computer Manufacturer/Model Number
Sony Vaio Z46GDU
OS
Windows 7 Ultimate x86-64
CPU
[email protected] 1066MHz FSB
Motherboard
Sony branded
Memory
6GB DDR3 1066MHz
Graphics Card(s)
9300M GS 256MB Dedicated (Speed) + Intel4500MHD (Stamina)
Sound Card
Realtek HD Audio
Monitor(s) Displays
13.1' WXGA
Screen Resolution
1600x900
Hard Drives
320GB 7200RPM w/ 16MB cache
Internet Speed
1MB/s
Hmm...I have never tried to shutdown the computer from the command line before.

I didn't even know that it's possible.

Just about anything that you can do within the GUI has a command line equivalent. In addition, many command line tools provide far more options than their GUI counterparts.
 

My Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
you should run cmd in administrator mode before using commands like shutdown /s
to turn that off (which i do not recommend), turn of UAC at control panel > useraccounts
 

My Computer

OS
Windows 7 Ultimate 32-bit
Hi there!

Thanks for that. Should read a bit better next time!! :)

Yeah I bought the SIdewinder x6 keyboard. So want to do a shutdown shortcut key

You guys cant point me in the right direction for some nice batch scripting tutorials

Thanks!
 

My Computer

Computer Manufacturer/Model Number
MSI
OS
Windows 7 Ultimate RTM
CPU
Core 2 Duo 2.66 GHZ
Motherboard
DG33U
Memory
4 GB Kingston (800 MHZ)
Graphics Card(s)
Nvidia GTX 260 (896 MB RAM)
Monitor(s) Displays
Samsung Syncmaster 2333
Hard Drives
1TB WD
250 GB Seagate
PSU
550 W
Case
Standard
Cooling
Standard
Back
Top