Windows Command Line Shutdown

August 19, 2016 | Views: 7614

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

This is particularly useful when you’re connected to a Windows system via RDP or a VPN tunnel and need to shutdown or reboot the system. Using the “Start” button when using RDP, the only options offered are “Logoff”, then Disconnect or Lock. Not very useful when you need to reboot or just shut the system down from a remote location.

By dropping to the command prompt, you can access the shutdown functions from the command line. Below are the commands:

  • shutdown -r — restarts
  • shutdown -s — shuts down
  • shutdown -l — logoff
  • shutdown -t xx — where xx is number of seconds to wait till shutdown/restart/logoff
  • shutdown -i — gives you a dialog box to fill in what function you want to use
  • shutdown -a — aborts the previous shutdown command….handy in case of an OOPS!
  • shutdown -h — hibernate (NOT help)
    One additional switch   -f — force the selected action


To force an immediate reboot, enter “shutdown -t 0 -r -f” – without the quotes

To force a reboot after a specific waiting period enter “shutdown -t xx -r” – xx being the number of seconds to wait before running the command.
Thanks and I hope this was helpful to you.
Share with Friends
Use Cybytes and
Tip the Author!
Share with Friends
Ready to share your knowledge and expertise?
  1. You can also use Alt + F4 while in RDP to pull up a menu that allows for reboot/shutdown options.

  2. gooo….Well done!!!

  3. Thank’s for share it : ))

Page 7 of 7« First...«34567
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge


We recommend always using caution when following any link

Are you sure you want to continue?