Jump to content

User:Davidt N2

From Wikipedia, the free encyclopedia

How to shut down a computer using a command prompt.

A command prompts

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

  1. Press window key + R.
  2. Type CMD and press enter key.
  3. 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.