How to force restart a remote computer

How to restart a remote computer from the command line

  1. Open a command prompt from your workstation.
  2. Type shutdown -r -t 0 -f -m \\computername and press Enter.
    Note: More shutdown options can be found here.
  3. The remote computer will restart immediately and force any applications to close.

How to restart a remote computer from the  shutdown GUI

  1. Open a command prompt from your workstation.
  2. Type shutdown /i and press Enter.  This will bring up the following screen.
    shutdown
  3. Click Add and enter the remote computer name.
    Note: You are able to add multiple computer names if you have more than 1 computer to restart.
  4. Select Restart from the drop down menu (you also have the option to shutdown).
  5. Select ‘Warn users of the action’ if you want to display a user notification and specify for how long before restarting.
  6. Select the appropriate shutdown event tracker options.
  7. Click Ok.
  8. The remote computer will restart based on your selection.

How to log off a user from a remote computer

  1. Open an elevated command prompt from your workstation.
  2. Type in query session /server:computername and press Enter.  This will display the session information from that computer.  See the below example where bob’s session ID is 7.
    Note: More query session options can be found here.
    querysession
  3. Type in logoff # /server:computername and press Enter.
    Replace # with the session ID number found in the previous step.
    Note: More logoff options can be found here.
    logoff
  4. The user will be logged off immediately.

Your email is never published or shared. Required fields are marked *

*

*