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 shutdown computer remotely. Once this is set up, you can perform the shut down from any computer, including Linux.
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.
Type .services.msc while the Start menu is open and press ↵ Enter. This start the Microsoft Management Console with the "Services" section open.
Find "Remote Registry" in the list of services. The list is sorted alphabetically by default.
Right-click "Remote Registry" and select "Properties." This will open the Properties window for the service.
Select "Automatic" from the "Startup type" menu. Click "OK" or "Apply" to save changes.
Click the Start button again and type "firewall." This will launch Windows Firewall.
Click "Allow app or feature through Windows Firewall." You'll find this on the left side of the window.
Click the "Change settings" button. This will allow you to make changes to the list below it.
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.
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:
From the remote shutdown dialog window, you can add one or more computer names and specify whether you want to shutdown or restart the computer. You can optionally warn users and log a message to the system’s event log.
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.
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: