Pages

Friday, 23 November 2012

Shutdown Your Computer or a Remote PC via Command Prompt

Most of us shutdown our computers using the power button given in the Start menu. Some of us use the physical power button on our machines. Very few people actually use other means of shutting down a computer and even less is the number of people who use the command prompt to shutdown a computer.


  • Press Windows Key + R.
  • Enter CMD and press Enter. (This will start the command prompt)


Shutdown Your Machine
Type "shutdown -s" without the quotes in the command prompt and press Enter.

Restart your Computer 
Type "shutdown -r" in the command prompt and press Enter.

Log Off the Current User
Type "shutdown -l" in the command prompt and press Enter.

Shutdown a Remote Computer
Type "shutdown -s -m \\name of the computer"

Note: If you don't remember the name of the remote computer, you can look for it by opening a list of all the computers you are connected to by "net view" in command prompt.

Hibernate a Local Computer
Type in "Rundll32.exe Powrprof.dll,SetSuspendState" in the command prompt and press Enter.

Shutdown your or a remote computer after a specific time
Type "shutdown -s -t 60" to shutdown your computer after 60 seconds.

Display a Message containing the reason for shutdown
Type shutdown -s  -t 500 -c "I am tired. I don't want to work anymore."  to shutdown with a Message

Stop a System Shutdown
Type "shutdown -a" and press Enter. This will stop the system from shutting down.

No comments:

Post a Comment