Remotely Restart a Windows Machine Through Command Line

The DOS command line built into every windows machine can be used to perform a lot of useful tasks including shutting down or restarting another device remotely. To remotely restart a Windows machine through command line, follow these instructions.

Steps

Enable Remote Restart on the Desired Windows Machine

  1. Log into the machine you’d like to remote-restart as an Administrator.
  2. Go to Start > Run.
    • Alternatively, type services.msc into the Search function and skip to Step 3.
  3. Type services.msc and hit Open.
  4. Scroll down to Remote Registry, right-click, and select Properties from the drop-down list.
  5. To the right of Startup Type, select Automatic from the drop-down list, then hit OK.
  6. Configure your firewall to make Windows Management Instrumentation (WMI) an allowed program. How you do this will depend on your firewall program.
    • To do this on Windows Firewall, go to Windows Firewall, click Change Settings, go to the Exceptions tab, and check the box next to Windows Management Instrumentation (WMI).
  7. Make a note of the device name, as you will need it later. To do this on a Windows computer:
    • Right-click on My Computer and select Properties.
    • Scroll down to Computer name, domain, and workgroup settings. You will find the computer name listed here.

Remotely Restart via Command Prompt

  1. Log into a remote Windows computer as an Administrator.
  2. Go to Start > Run.
    • Alternatively, type cmd.exe into the Search function and skip to Step 3.
  3. Type cmd.exe and hit Open.
  4. Type shutdown /i and hit Enter.
  5. Click Add, type in the name of the remote device, and hit OK.
  6. Apply the desired settings and hit OK. For example, you can choose to shut down or restart, warn the user on the remote machine, display the warning for a set length of time, etc.
    • A warning message will be displayed on remote machine and system will restart after set time.

Remotely Restart on Windows XP Professional

  1. Log into a remote Windows computer as an Administrator.
  2. Go to Start > Control Panel.
  3. Navigate to Performance and Maintenance > Administrative Tools > Computer Management.
  4. Right-click Computer Management (Local) and select Connect to another computer.
  5. Click Another computer, type the name of the machine you want to restart, and click OK. You can also click Browse to find this name.
  6. Right-click Computer Management (Name You Supplied) and select Properties.
  7. Under the Advanced tab, click Startup and Recovery.
  8. Click Shutdown, find Actions, and select Restart.
  9. Under Force Apps Closed, adjust to the desired settings and hit OK.

Warnings

  • Note that remotely restarting via the command prompt only works if the remote computer is on your local network.

Related Articles

  • Restart Terminal Services
  • Test Network and Internet Latency (Lag) in Microsoft Windows
  • Change Window Skins With Shellwm
  • Remotely Shutdown a Computer
  • Make a Ping Utility on Windows NT Systems

Sources and Citations