shutdown system with the cmd/command propmt

CONTROLLING SYSTEM POWER WITH THE CMD COMMAND PROMPT



Hi guys i want to show you how to control the system power with command prompt. The steps involves the:

  • Shutdown
  • Log off
  • Hibernate
  • Shutdown with time
  • Shutdown with a comment


On your system and press and hold down the Windows key with the R key to bring the Run box, type 'cmd' or 'command' and hit the enter key to bring the command propmt/DOS Window. When the window display on your screen do the following:

To Shutdown

Type the this 'shutdown -s', please don't include the quote the system will shutdown after 25 seconds because that is the default timing for a shutdown when the count down is not specified.



To Log off a User

Type this code without the quotes 'shutdown -l' and press the enter key to execute the command and immediately the system will log off the current user.



To Hibernate the System

Type this code 'shutdown -h' and press the enter the key and the system will be hibernated.



To shutdown the System with Time

Type this code 'shutdown -s -t "60" and press the enter key. The value in the quotes specify the time of execution and the time is measured in seconds so our coded will shutdown the system after 60 seconds.



Shutdown with a Comment

Type this code 'shutdown -s -c "I will shutdown less a minute". In this code the system will display a shutdown dialog with a comment on it just like the one with added there. You can also include the timing into the code like shutdown -s -t "120" -c "Hi! I will shutdown in 2 minutes".



Type this code exactly into your cmd window and hit the enter key to see it works.

Was this helpful? Please your comment

Comments

Jude Carter