صحه

How to Remotely Restart a Windows Machine Through Command Line

Part 1 Enabling Remote Restart

  1. 1

    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. 2

    Open Start

    Image titled Windowsstart.png

    . Click the Windows logo in the bottom-left corner of the screen.

  3. 3

    Type services into Start. Doing so searches the computer for the Services app.

  4. 4

    Click Services. It’s a gear-shaped app at the top of the Start window. The Services window will open.

    • If this option doesn’t appear, type services.msc into Start to force it to appear.
  5. 5

    Scroll down and click Remote Registry. It’s in the “R” section of the main window. Clicking Remote Registry selects it.

  6. 6

    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. 7

    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. 8

    Select Automatic. Click Automatic in the drop-down menu.

  9. 9

    Click OK. It’s at the bottom of the window. Doing so enables remote restart on this computer.

Part 2 Allowing Remote Restart in Firewall

  1. 1

    Open Start

    Image titled Windowsstart.png

    . Make sure you’re still using the computer that you want to remotely restart.

  2. 2

    Type firewall into Start. This will search for the Windows Firewall app.

  3. 3

    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. 4

    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. 5

    Click Change settings. It’s above the upper-right corner of the list of programs. Clicking it unlocks the list of programs.

  6. 6

    Scroll down to the “Windows Management Instrumentation (WMI)” option. You’ll find this near the bottom of the list of programs.

  7. 7

    Check the “Windows Management Instrumentation” box. It’s to the left of this option.

    • 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. 8

    Click OK. It’s at the bottom of the window. This computer will no longer block remote access in Firewall.

Part 3 Finding the Computer’s Name

  1. 1

    Open Start

    Image titled Windowsstart.png

    . 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. 2

    Open File Explorer

    Image titled Windowsstartexplorer.png

    . Click the folder-shaped icon in the Start window.

  3. 3

    Click This PC. It’s a computer-shaped folder on the left side of the File Explorer window.

  4. 4

    Click the Computer tab. This option is in the upper-left side of the window. A toolbar will appear below the tab.

  5. 5

    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. 6

    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.

    • Make sure you write down the name exactly as it appears in this menu.

Part 4 Restarting via Command Prompt

  1. 1

    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. 2

    Open Start

    Image titled Windowsstart.png

    . Click the Windows logo in the bottom-left corner of the screen.

  3. 3

    Type command prompt. This will search your computer for the Command Prompt app.

  4. 4

    Click

    Image titled Windowscmd1.png

    Command Prompt. It’s at the top of the Start window.

  5. 5

    Type shutdown /i into Command Prompt, then press Enter. This command brings up a window from which you can remotely restart the other computer.

  6. 6

    Click Add…. It’s on the right side of the window. Doing so opens another window.

  7. 7

    Enter the other computer’s name. Type the name of the computer that you want to restart into the text field in the window.
  8. 8

    Click OK. It’s at the bottom of the window.

  9. 9

    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.

    • 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).
  10. 10

    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.

Community Q&A

Ask a Question

Tips

  • If the computer that you’re trying to shut down has third-party antivirus or firewall software, you may need to disable it before the remote restart will work.

Warnings

  • Don’t restart a computer if you don’t have permission to do so.

Article Info

Thanks to all authors for creating a page that has been read 1,272,975 times.

Is this article up to date?

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *

إغلاق