How do I force shutdown a remote desktop session?

How to easily shutdown or restart Windows over Remote Desktop Connection

Posted by Paul Braren on Apr 4 2016 [updated on Apr 6 2016] in

  • Windows
  • Productivity
  • HomeLab
  • HomeServer
  • groovyPost

    • SUBSCRIBE
    • Best Of
    • How To
    • News
    • Reviews
    • YouTube
    • Search

    How-To

    To Restart the remote Windows machine

    Press the keys Windows+R on the keyboard together, it will pop-up the run command screen.
    In the input line type shutdown /r /t 0 and hit the Enter button to restart the machine immediately.

    • The /r option instructs the machine to reboot
    • The /t 0 option sets the number of seconds to delay before executing the restart to 0 [initiate restart process immediately]

    Windows Shutdown Command

    Windows systems has a built in shutdown command that can be used to restart or shutdown local and remote computers.

    The command is shutdown.

    To use this command just open the windows command prompt and type shutdown.

    To view the full list of command options type shutdown /? in the CMD window.

    There are several command line switches, below I list the most useful options.

    /s – Shutdown the computer

    /r – restart computer

    /m \\computer – Specify the remote computer

    /l – Log off

    /t xxx – Set the time out period before shutdown to xxx seconds

    /c “comment” – Message to display on the screen before restart or shutdown

    Now lets move onto some examples

    Video liên quan

    Chủ Đề