

To set up the remote computer to allow remote command executions, use these steps: However, the tool is limited, and you will perform extra steps to get it working. The shutdown command-line tool also allows you to remotely turn off or restart a device. How to turn off remote computer with shutdown command Once you complete the steps, Windows 10 will display the "Updating XYZ company app" message to the user and power off the computer after 60 seconds. Here's how: shutdown /r /t 60 /c "Updating XYZ company app." For example, this command displays the "Updating XYZ company app" before shutting down the computer after one minute: shutdown /s /t 60 /c "Updating XYZ company app." You can also switch the /s for the /r option if you want to show a message for the restart in the command.

In the command, replace TIME with the number of seconds before shutting down the computer, and replace MESSAGE with the custom text you want to display to the user.


To shut down a computer showing a dialog message alerting the user of the action, use these steps: You can always view the shutdown logs in Event Viewer > Windows Logs > System and look for the "Information" event with the User32 source and with the "Event ID" of 1074. The above command will shut down the device, recording the "Operating System: Service pack (Unplanned)" reason.Īfter you complete the steps, the Windows 10 device will shut down and log the specified reason.
