HOWTO: Shutdown remote computer

If you have multiple computers on your network, you can shut them down remotely regardless of their operating system. If you are using Windows, you'll need to set the remote computer to be able to shut down computer remotely. Once this is set up, you can perform the shut down from any computer, including Linux.

1. Enabling the Remote Registry Service (Windows):

   - Open the Start menu on the computer you want to be able to shut down remotely. Before you can remotely shut down a Windows computer on your network, you'll need to enable Remote Services on it. This requires administrator access to the computer.

2. Type .services.msc:

   - Type .services.msc while the Start menu is open and press ↵ Enter. This start the Microsoft Management Console with the "Services" section open.

3. Find "Remote Registry":

   - Find "Remote Registry" in the list of services. The list is sorted alphabetically by default.

4. Select "Properties.":

   - Right-click "Remote Registry" and select "Properties." This will open the Properties window for the service.

5. Select "Automatic":

   - Select "Automatic" from the "Startup type" menu. Click "OK" or "Apply" to save changes.

6. Open firewall:

   - Click the Start button again and type "firewall." This will launch Windows Firewall.

7. Allow and app or feature through Windows Firewall:

   - Click "Allow and app or feature through Windows Firewall." You'll find this on the left side of the window

8. Change settings:

   - Click the "Change settings" button. This will allow you to make changes to the list below it.

9. Check the "Windows Management Instrumentation":

   - Check the "Windows Management Instrumentation" box. Check the box in the "Private" column.
Note!!! Your user account must also have administrator permissions on the remote computer. If it doesn’t, the shutdown command will fail due to lack of permissions.

10. Remote Shut Down:

   - To shut down the computer, launch a Command Prompt window on another computer (click Start, type Command Prompt, and press Enter). Type the following command into the command prompt window for a graphical interface:
shutdown /i

11. Add one or more computer names:

   - From the remote shutdown dialog window, you can add one or more computer names and specify whether you want to shut down or restart the system. You can optionally warn users and log a message to the system’s event log.

12. Check computer name:

   - Not sure what the name of the remote computer is? Click Start on the remote computer, right-click Computer in the Start menu, and select Properties. You’ll see the computer’s name.

13. You can also use a command instead of the graphical interface:

   - You can also use a command instead of the graphical interface. Here’s the equivalent command:
shutdown /s /m \\chris-laptop /t 30 /c “Shutting down for maintenance.” /d P:1:1

Also consider using Action1 to shutdown remote computer if:
- You need to perform this action on multiple (hundreds or even thousands) computers simultaneously.
- Some of your endpoints are laptops not connected to corporate network at all times.

Action1 is a cloud-based platform for software deployment, software/hardware inventory, patch management, endpoint configuration and more. It is free with basic functionality.

Other Relevant HOWTOs: