![]() If no one is using the computer, you can immediately send a command that restarts the device. For example, this command will notify the user and force the device to close all applications without warnings after one minute: shutdown /r / m \\10.1.4.120 /t 60 /c "This PC will restart in one minute for maintenance." /f. In the command, replace REMOTE-PC for the name or IP address of the remote computer, TIME for the number of seconds to wait before beginning the shutdown process, and replace COMMENT for the custom dialog you want to send the user. Type the following command to restart the remote computer and press Enter: shutdown /r /m \\REMOTE-PC /t TIME /c "COMMENT" /f.Confirm the account password and press Enter.Confirm the account name located in the remote device and press Enter.For example, this command connects to the computer: net use \\10.1.4.120\ipc$ In the command, replace REMOTE-PC with the name or IP address of the remote computer. Type the following command to connect to the IPC$ share (or null session connection) and press Enter: net use \\REMOTE-PC\ipc$. ![]() ![]() To use the Command Prompt to shut down a computer remotely, use these steps: If you want to revert the changes to improve the device security, you can use the same instructions outlined above, but in step 3, make sure to run this command: reg add HKLM\Software\Microsoft\windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 0 /f. Type the following command to disable the User Account Control for remote executions and press Enter: reg add HKLM\Software\Microsoft\windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /fĪfter you complete the steps, the device will be open to receive commands remotely from authenticated users.It's recommended to make a full backup of your computer before proceeding. Warning: This is a friendly reminder that editing the Registry is risky and can cause irreversible damage to your installation if you don't do it correctly. 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. Type the following command to shutdown the device showing a custom dialog message and press Enter: shutdown /s /t TIME /c "MESSAGE".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. Type the following command to power off the computer specifying a reason as unplanned and press Enter: shutdown /s /t 1 /d u:2:16.You can also switch the /s for the /r option if you want to specify a reason for the restart in the command. For example, this command shuts down the device, recording the "Operating System: Service pack (Planned)" reason: shutdown /s /t 1 /d p:2:16. ![]() You can determine all the available major and minor reason numbers by running the shutdown /? command. In the command, change the MAJOR-NUMBER:MINOR-NUMBER for the numbers that represent the reason.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |