User:Davidt N2
How to shut down a computer using a command prompt.
![](http://upload.wikimedia.org/wikipedia/commons/c/ce/Shut_down_command_prompt.jpg)
Majority of the computer users uses power button given in the start menu to shut down a computer.Others use the physical power button on a computer. Currently, there is less number of people who use command prompt to shut down the machine. The major reason is most of us don’t know how to use command prompt or don’t know that the command prompt can be used to shut down the computer.
What are the requirements?
A computers running in any windows operating system with the command prompt working perfectly.
Procedures to open a command prompt
- Press window key + R.
- Type CMD and press enter key.
- This will open a command prompt.
Follow the instructions below.
- Shutting down your computer
Type “shutdown –s” (without quotes) in the command prompt and press enter .Shutdown is the command to execute and –s is the switch to tell the computer to shut down.
- Shutting down a remote computer.
Type “shutdown –s\\name of the computer” without quotes in the command prompts and press enter. Remember you must have administrative access account to the remote computer. To know if you have administrative access, type the name of the computer in the command prompt and press enter or you can execute “ net view” in the command prompt to view a list of computers you are connected to and select one.
- To shut down your PC or a remote PC after a specific time frame.
Type “shutdown –s –t 120 or shutdown –s –t 120\\name of the remote computer” in the command prompt and press enter. This will shut down your PC after 120 seconds. Upon executing this, a countdown timer will display a warning message.
- How to display a reason for shut down the computer.
Type shutdown –s -t 300 –c” you must be tired. Pack and go home” with the quotes in the command prompts and press enter. The –c switch is used in the code to display the reason for shutting down.