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: Shortcut command to shutdown without cmd popup

02 Jun 2014   #1
osandakj

Genuine Windows® 7 Ultimate x64
 
 
Shortcut command to shutdown without cmd popup

Hello, I tried many commands with switches to shut down the system, but everything is popping a prompt and closes itself withing seconds. This is very annoying. Are there any way to shut down silently like default power button do?


My System SpecsSystem Spec
.
02 Jun 2014   #2
Kari

Microsoft Community Contributor Award Recipient

 

The command shutdown -s -t XXX shuts down the computer after XXX seconds. To give user time to abort an unwanted scheduled shutdown, Windows will warn user. Screenshot below shows the prompt in Windows 8.1, the idea is the same in Windows 7:
Shortcut command to shutdown without cmd popup-2014-06-02_14h17_12.png
When prompted, user can then give the abort command shutdown -a to cancel shut down. If you want to shutdown immediately without any prompts, the command is shutdown -s -t 0.

Kari


My System SpecsSystem Spec
02 Jun 2014   #3
Windows Sniper

Windows 8.1
 
 

Quote   Quote: Originally Posted by Kari View Post
The command shutdown -s -t XXX shuts down the computer after XXX seconds. To give user time to abort an unwanted scheduled shutdown, Windows will warn user. Screenshot below shows the prompt in Windows 8.1, the idea is the same in Windows 7:
Attachment 320160
When prompted, user can then give the abort command shutdown -a to cancel shut down. If you want to shutdown immediately without any prompts, the command is shutdown -s -t 0.

Kari
Just a quick correction for you there Kari,

If you want to fully shutdown the system, without any delay / prompts you need to use the -f flag for a forceful shutdown, this will stop any programs that are being used in admin mode and it stops all services.

The full shortcut would look like this,

shutdown.exe /f /s /t 0

This would then provide an immediate, no prompt shutdown.

Fun fact, you can also use the -c flag to customize the shutdown message. Just add it to the end of the switch followed by your message.
My System SpecsSystem Spec
.

02 Jun 2014   #4
Kari

Microsoft Community Contributor Award Recipient

 

Windows is quite good in closing applications when the shutdown command is given; I use the delayed command (-t XXX secs) daily on a couple of rigs without the -f switch, for instance as a sleep timer on my bedroom desktop when watching some videos or listening music when going to bed, never had any issues.
My System SpecsSystem Spec
Reply

 Shortcut command to shutdown without cmd popup




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Elevated Command Prompt Shortcut
How to Create an "Elevated Command Prompt" Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create a shortcut that will open an elevated command prompt with administrator rights in Windows 7 and Windows 8. When you use the elevated command prompt shortcut, you may be...
Tutorials
Shortcut for clock popup window?
Is it possible to have a desktop shortcut for clock popup window, the one that appears when you click on the clock in the system tray icon, not the timedate.cpl?
General Discussion
Command Prompt shortcut
Hello I am 100% new to command prompt so I am asking for a little guidance. I am lost on part two I simply have no idea what it is asking, do you? I know the /K keeps the command prompt window open after the script is finished. But thats about it. 1· Create a new Windows shell initialization...
General Discussion
Run Command - Create Shortcut
How to Create a "Run" Command Box Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create or download a Run command dialog shortcut that you can pin and use where you like in Windows 7 and Windows 8. The default keyboard shortcut to open the Run dialog is Windows + R....
Tutorials
Can I get a shortcut to the Time/Calendar popup window
Only way to access it seems to be by clicking on the clock in the system tray. And it disappears too when lost focus. Is there any other way to get this window and to keep it open? http://i.techmadly.com/change-time-zone1.jpg
General Discussion
New shortcut command missing
My "New Shortcut command is missing. I really thought there was one there before. If there was and it somehow got removed, I would really like to know how to get it back. Look at the screenshot if you don't know what I mean.
General Discussion


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 17:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App