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.
Contents
Steps
Enable Remote Restart on the Desired Windows Machine
- Log into the machine you’d like to remote-restart as an Administrator.
- Go to Start > Run.
- Alternatively, type services.msc into the Search function and skip to Step 3.
- Type services.msc and hit Open.
- Scroll down to Remote Registry, right-click, and select Properties from the drop-down list.
- To the right of Startup Type, select Automatic from the drop-down list, then hit OK.
- 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).
- 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
- Log into a remote Windows computer as an Administrator.
- Go to Start > Run.
- Alternatively, type cmd.exe into the Search function and skip to Step 3.
- Type cmd.exe and hit Open.
- Type shutdown /i and hit Enter.
- Click Add, type in the name of the remote device, and hit OK.
- 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
- Log into a remote Windows computer as an Administrator.
- Go to Start > Control Panel.
- Navigate to Performance and Maintenance > Administrative Tools > Computer Management.
- Right-click Computer Management (Local) and select Connect to another computer.
- 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.
- Right-click Computer Management (Name You Supplied) and select Properties.
- Under the Advanced tab, click Startup and Recovery.
- Click Shutdown, find Actions, and select Restart.
- 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