How to Remotely Restart a Windows Machine Through Command Line

This wikiHow teaches you how to restart another computer on your network from your own computer by using the Windows Command Prompt app. You cannot remotely restart a computer with Command Prompt if you haven't previously set the computer...

Part 1 of 4:

Enabling Remote Restart

  1. Picture 1 of How to Remotely Restart a Windows Machine Through Command Line
    Make sure that you're on the computer that you want to restart. Before you can remotely restart a computer on your network, you must set up the computer to receive remote instructions.
  2. Picture 2 of How to Remotely Restart a Windows Machine Through Command Line
    Open Start
    Picture 3 of How to Remotely Restart a Windows Machine Through Command Line
    . Click the Windows logo in the bottom-left corner of the screen.
  3. Picture 4 of How to Remotely Restart a Windows Machine Through Command Line
    Type services into Start. Doing so searches the computer for the Services app.
  4. Picture 5 of How to Remotely Restart a Windows Machine Through Command Line
    Click Services. It's a gear-shaped app at the top of the Start window. The Services window will open.
    1. If this option doesn't appear, type services.msc into Start to force it to appear.
  5. Picture 6 of How to Remotely Restart a Windows Machine Through Command Line
    Scroll down and click Remote Registry. It's in the "R" section of the main window. Clicking Remote Registry selects it.
  6. Picture 7 of How to Remotely Restart a Windows Machine Through Command Line
    Click the "Properties" icon. It's a grey box with a folder on it just below the View tab at the top of the window. The Properties window will open.
  7. Picture 8 of How to Remotely Restart a Windows Machine Through Command Line
    Click the "Startup type" drop-down box. This box is to the right of the "Startup type" heading in the middle of the window. A drop-down menu will appear.
  8. Picture 9 of How to Remotely Restart a Windows Machine Through Command Line
    Select Automatic. Click Automatic in the drop-down menu.
  9. Picture 10 of How to Remotely Restart a Windows Machine Through Command Line
    Click OK. It's at the bottom of the window. Doing so enables remote restart on this computer.
Part 2 of 4:

Allowing Remote Restart in Firewall

  1. Picture 11 of How to Remotely Restart a Windows Machine Through Command Line
    Open Start
    Picture 12 of How to Remotely Restart a Windows Machine Through Command Line
    . Make sure you're still using the computer that you want to remotely restart.
  2. Picture 13 of How to Remotely Restart a Windows Machine Through Command Line
    Type firewall into Start. This will search for the Windows Firewall app.
  3. Picture 14 of How to Remotely Restart a Windows Machine Through Command Line
    Click Windows Firewall. It's an image of a brick wall and a globe. You'll find it at the top of the Start window.
  4. Picture 15 of How to Remotely Restart a Windows Machine Through Command Line
    Click Allow an app or feature through Windows Firewall. This link is in the top-left corner of the window. Doing so opens a list of all programs and services on the computer.
  5. Picture 16 of How to Remotely Restart a Windows Machine Through Command Line
    Click Change settings. It's above the upper-right corner of the list of programs. Clicking it unlocks the list of programs.
  6. Picture 17 of How to Remotely Restart a Windows Machine Through Command Line
    Scroll down to the "Windows Management Instrumentation (WMI)" option. You'll find this near the bottom of the list of programs.
  7. Picture 18 of How to Remotely Restart a Windows Machine Through Command Line
    Check the "Windows Management Instrumentation" box. It's to the left of this option.
    1. If the computers you're using are on a public network, you'll also need to check the "Public" box on the far-right side of the page.
  8. Picture 19 of How to Remotely Restart a Windows Machine Through Command Line
    Click OK. It's at the bottom of the window. This computer will no longer block remote access in Firewall.
Part 3 of 4:

Finding the Computer's Name

  1. Picture 20 of How to Remotely Restart a Windows Machine Through Command Line
    Open Start
    Picture 21 of How to Remotely Restart a Windows Machine Through Command Line
    . Again, you'll need to do this on the computer that you want to restart, not the computer from which you send the "Restart" command.
  2. Picture 22 of How to Remotely Restart a Windows Machine Through Command Line
    Open File Explorer
    Picture 23 of How to Remotely Restart a Windows Machine Through Command Line
    . Click the folder-shaped icon in the Start window.
  3. Picture 24 of How to Remotely Restart a Windows Machine Through Command Line
    Click This PC. It's a computer-shaped folder on the left side of the File Explorer window.
  4. Picture 25 of How to Remotely Restart a Windows Machine Through Command Line
    Click the Computer tab. This option is in the upper-left side of the window. A toolbar will appear below the tab.
  5. Picture 26 of How to Remotely Restart a Windows Machine Through Command Line
    Click Properties. It's a red checkmark on a white box in the far-left side of the toolbar. This will open the Properties page for this computer.
  6. Picture 27 of How to Remotely Restart a Windows Machine Through Command Line
    Note the computer's name. You'll find the "Computer name" section under the "Computer name, domain, and work group settings" heading in the middle of the page.
    1. Make sure you write down the name exactly as it appears in this menu.
Part 4 of 4:

Restarting via Command Prompt

  1. Picture 28 of How to Remotely Restart a Windows Machine Through Command Line
    Open another computer on your network. This computer must have administrative privileges, and it must be on the same network as the computer that you want to restart.
  2. Picture 29 of How to Remotely Restart a Windows Machine Through Command Line
    Open Start
    Picture 30 of How to Remotely Restart a Windows Machine Through Command Line
    . Click the Windows logo in the bottom-left corner of the screen.
  3. Picture 31 of How to Remotely Restart a Windows Machine Through Command Line
    Type cmd, then press Enter. This should open Command Prompt.
  4. Picture 32 of How to Remotely Restart a Windows Machine Through Command Line
    Type shutdown /i into Command Prompt, then press Enter. This command brings up a window from which you can remotely restart the other computer.
  5. Picture 33 of How to Remotely Restart a Windows Machine Through Command Line
    Click Add…. It's on the right side of the window. Doing so opens another window.
  6. Picture 34 of How to Remotely Restart a Windows Machine Through Command Line
    Enter the other computer's name. Type the name of the computer that you want to restart into the text field in the window.
    1. If you didn't find the computer's name earlier, do so before continuing.
  7. Picture 35 of How to Remotely Restart a Windows Machine Through Command Line
    Click OK. It's at the bottom of the window.
  8. Picture 36 of How to Remotely Restart a Windows Machine Through Command Line
    Make sure the computer is set to restart. In the "What do you want these computers to do" section, click the drop-down box and select Restart if it isn't displayed here.
    1. You can also check or uncheck the option to deliver a warning to the user of the computer before shutting down, or you can adjust the time limit to restart (the default is 30 seconds).
  9. Picture 37 of How to Remotely Restart a Windows Machine Through Command Line
    Click OK. It's at the bottom of the window. This will prompt the other computer to restart as soon as the selected time limit expires.
Update 04 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile