Remote Shutdown and Restart your Windows PC
Windows basically includes Shutdown.exe, a simple utility to remotely shutting down or restarting Windows Pcs on your local network. In order to use Shutdown.exe, you must first configure the PCs you guys want to shut down or restart remotely. Let’s now discuss Remote Shutdown and Restart your Windows PC.
When you guys have configured the PCs, you can use a graphical user interface or command in order to restart the PCs from another Windows system as well. You guys can even remotely shut down or restart the PCs from a Linux system too.
Remote Shutdown and Restart your Windows PC
This method basically needs you to tweak some registry settings in order to shut down or restart your Windows 10 PC. But, you have to follow the steps carefully, because any misconfiguration in the registry can destabilize the system as well.
The remote registry service must be turned on in each and every computer you want to shut down remotely – it’s turned off by default actually.
In order to turn it on, first, open the Services control panel on the computer that you want to shut down remotely actually. If you want to do this, click the Start button, type services.msc into the Start menu and then tap Enter.
Now locate the “Remote Registry” service in the list, and then right-tap on it and choose Properties. From the properties window, and then set the Startup type in order to Automatic and tap on the Start button to open the service.
Next, you guys will have to open the port in the computer’s firewall. Tap on Start, type “Allow a program” and then click on Enter. In the window that appears, you have to tap on the “Change settings” button. Scroll down in the list and turn on the “Windows Management Instrumentation (WMI)” exception.
Your user account must also have administrator permissions on the remote computer as well. If it doesn’t, then the shutdown command will fail because of a lack of permissions.
Remote Shut Down
In order to shut down the computer, open a Command Prompt window on another computer (click Start, type Command Prompt, and press Enter). You have to type the following command into the command prompt window for a graphical interface:
From the remote shutdown dialog window, you guys can also add one or more computer names. And specify if you want to shut down or restart the system as well. You can optionally warn the users and log a message to the system’s event log as well.
Are you not sure what the name of the remote computer is? Then just tap on Start on the remote computer, right-tap on Computer in the Start menu. And choose Properties as well. You guys will see the computer’s name there.
You can also use a command rather than a graphical interface. Let’s have a look at the equivalent command:
shutdown /s /m \\chris-laptop /t 30 /c “Shutting down for maintenance.” /d P:1:1
Use Remote Desktop
As an alternative to VNC or RDP, you guys can shut down or also restart a networked PC from the command line actually. You need to connect your Windows PCs to the same network, then follow the steps below.
- On the computer that you want to reboot or shutdown remotely, just tap on Windows key + R, type: Regedit, and then hit Enter on your keyboard.
- Now you have to navigate to the following registry key Computer\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System. If you guys are running Windows 10 1703 or later, then you can instantly find registry keys. Through copying and pasting the registry path into the address bar and click Enter.
- Right-click on the System folder, and choose New > DWORD (32-bit) Value.
- Then enter the following label: LocalAccountTokenFilterPolicy.
- Double-ta on the value then change the value to 1.
- Then exit the registry and restart your computer in order to confirm changes. Now you are ready to restart or shutdown remotely actually.
- Tap on Windows key + X, and click Command Prompt (Admin).
- Now at the command prompt, just log into the machine. For example, net use \\MachineName then click on Enter. You need to enter your username on the machine or Microsoft Account ID followed via your password.
- At the command prompt, just type shutdown -r -m \\MachineName -t -01 then tap Enter on your keyboard.
What’s more | remote shutdown and Restart
The remote computer should automatically shut down or restart relying on the switches that you select. Notice, the command is just the same as performing it locally. You guys can always specify a longer period for your shutdown or restart as well. In my case, I actually chose one minute. If you want to make sure the machine shuts down or restarts. Then you can add the /f switch, example: shutdown /m \\ MachineName /r /f. This will close out all of the open applications running on the remote machine actually.
Shut Down From Linux
Whenever you guys have set up the computer, then you can also shut it down from a Linux system as well. This needs the samba-common package installed and you can also install it on Ubuntu along with the following command:
sudo apt-get install samba-common
When you have, then use the following command from a terminal:
net rpc shutdown -I ip.address -U user%password
Replace “ip.address” along with the numerical address of the Windows computer. Well, “user” with the username of an account that actually has administrator privileges on the remote computer. And also “password” with the user account’s password as well. You can add a “-r” option to the command if you guys want the computer to restart rather than shutting down.
If you have a remote desktop access, then you can also access the desktop and shut down or restart that way as well. The shutdown.exe command is actually a faster way of doing the same thing that is designed for system administrators. You can also shut down or reboot multiple computers much faster than you could through logging into them one-by-one.
Automate Multiple Shutdown/Restart via Batch File
If you connect remotely and shut down a computer, it is actually fine as a one-off. However, what if you want to shut down or reboot a computer at the same time each and every day? If you have to do this via the command line every time, then it becomes a drag real quick. An easier option is to automate restarting or shutting down all of your computers actually. Fire up Notepad, then enter the remote shutdown command along with each computer’s network name on a new line as well.
Fire up Notepad, then you need to enter the remote shutdown command with each computer’s network name on a new line. Such as:
1. shutdown -r -m \\DELL-PC1 -t -01
2. shutdown -r -m \\SURFACEPRO -t -01
3. shutdown -r -m \\MachineName -t -01
You guys can also modify the switches based on if you want to restart (-r) or shutdown (-s). Now proceed to save the file using the .bat extension on your desktop, such as, shutdownrestart.bat
You are good to go. If you have any queries and issues related to this “remote shutdown and Restart” article then let us know in the comments section below.