Shut down your computer from the (eventually DOS prompt) command line box?

Asked By 7060 points N/A Posted on -
qa-featured

 

Hi All,

Shut down your computer from the (eventually DOS prompt) command line box?

Thank you.

SHARE
Best Answer by James20
Best Answer
Best Answer
Answered By 5 points N/A #79465

Shut down your computer from the (eventually DOS prompt) command line box?

qa-featured
Hi dear,
 
All you need to do is… right-click on an empty Desktop spot > Select New > Shortcut > Type shutdown followed by a space, and then enter one or more of the parameters listed below > Click Next > Type a suggestive name for your new shortcut > finally, click Finish.
 
This is the Shutdown.exe
Answered By 10 points N/A #79466

Shut down your computer from the (eventually DOS prompt) command line box?

qa-featured

You can do this by clicking on your mouse, now how can you do this? Just follow my instructions:

If you are ready for do this then> click on your mouse right button on your desktop (Blank space),> go to New > Then choose Shortcut > type shutdown remember do not put here any space, next insert one or more parameters form listed below > click on Next > Type a name for your shortcut, Ex. Turn Off > lastly click on Finish.

Here is the Shutdown.exe (you can find it in; %systemroot%System32, usually C:WindowsSystem32)

In addition: When you complete creating shortcut for shutdown or turn off then> right click on your shortcut file then go to properties > here you insert your desired key “combo” in shortcut key box (for example: Ctrl+Alt+End or what you want) > then click on Apply/OK.

 

Thank You.

Answered By 0 points N/A #196167

Shut down your computer from the (eventually DOS prompt) command line box?

qa-featured

You can shutdown your computer visa Command Prompt only if you have the administrative rights. To do this, press Windows Key + R and then type CMD and press Enter to start the Command Prompt.

To shutdown your computer (Local):

Simply type shutdown -s in the Command Prompt and press Enter. Shutdown is the command that should be done and -s will tell the computer to shutdown.

Shutdown a Remote PC:

Type shutdown -s -m \computername in the Command Prompt and press Enter. Change the computername to the name of your computer. You need to have administrative access to do this. To know if you have administrative access, press Windows key + R and then type your computer name and press the Enter key.

To shutdown your remote computer on a certain time:

Type shutdown -s -t 60 to shut it down after 60 seconds.

You can also add a message that has the reason for the shutdown. Just type shutdown -s  -t 500 -c I will go to work now! and press enter.

Answered By 590495 points N/A #297779

Shut down your computer from the (eventually DOS prompt) command line box?

qa-featured

If you want to shut down your computer from the command line or by executing a command in the command prompt, you simply need to run the “shutdown.exe” file. You don’t need to specify its path or include its path in the filename when running, just type without quotes “shutdown” plus a switch and press Enter and it should shut down your computer automatically.

The proper syntax to shut down your computer is:

  • shutdown -s

Unfortunately, just running the “shutdown.exe” file will not shut down the computer. A switch must be added, “-s”, to properly initiate the shut down. When you run “shutdown.exe” only, it will only display the help of the command. The following are the rest of the switches that you can apply to the command:

  • -i – this switch will display the GUI interface but it must be the first option in the command to work.
  • -l – this switch will log you out of your account. Used to log off an account.
  • -s – the switch to shutdown the computer.
  • -r – this is the switch used to simply restart the computer.
  • -a – this switch, when used, will abort a system shutdown.
  • -t xx – this is how you set a timeout for shutdown. Replace “xx” with the number of seconds.
  • -c “comment” – used to display a comment or message before shutdown. Just enclose the message in double quotes.

Related Questions