Why do you need to shutdown computer remotely?
What will you do if you forgot to turn off the desktop computer at home? Or what will you do if you want to control the time that your children spend playing games on the computer?
Then, you can shutdown computer remotely. Although there are many ways to shutdown remote PC, some of them are very complicated in operation. Here in this post, we’ll introduces 4 easy ways to shutdown computer remotely to you.
Preparation before shutting down computer remotely
Before shutting down computer remotely, we need to complete the relevant preparations. The very first thing is that we need to ensure the management authority of the target computer (the computer that needs to be shut down remotely).
- You need to have administrator rights on the target computer.
- If you are on a home network, make sure that two computers are in the same workgroup, and they all have an administrator account with the same credentials (user name and password).
- You must know the full name and IP address of the target computer.
- You need to turn on file and printer sharing first and change the registry key to prepare for the subsequent remote shutdown of the computer.
Turn on file and printer sharing
Turning on file and printer sharing is a necessary preparation step. It helps the target computer to receive the shutdown command to achieve the purpose of shutting down it remotely.
Step 1. Press Windows key + R to invoke the Run dialog box. Type in “control panel” and hit OK.
Step 2. At the top right of the main interface of Control Panel, change the view mode to Large icons and find Network and Sharing Center.
Step 3. On the left pane, click Advanced sharing settings. Turn on network discovery as well as file and printer sharing. And then click Save changes.
Step 4. Go back to the Control Panel and find Windows Defender Firewall.
Step 5. On the left pane, click Allow an app or feature through Windows Defender Firewall.
Step 6. Click Change settings, fin File and Printer Sharing, and then tick Private.
Change Registry Key
Changing the Registry Key allows the commands entered on the local computer to be executed on the target computer to shutdown computer remotely.
Important note: Improper modification of registry may lead to serious problems such as system instability. It is recommended to backup important files and related data in advance.
Step 1. Press Windows key + R to invoke the Run dialog box. Type in “regedit” and hit OK to open Registry Editor.
Step 2. Navigate here: Computer > HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion > Policies > System. Right-click System, then click New and choose DWORD (32-bit) Value.
Step 3. Rename it as “LocalAccountTokenFilterPolicy”. Then input 1 in the Value data field
Find computer name
We need to find the computer name of the target computer. Open the Control Panel, change the view mode to Large icons and find System. Click it and then you can see the computer name in the main interface.
How to shutdown computer remotely?
After completing the above preparations, you can follow the following 4 methods to shutdown computer remotely. The 4 methods are:
- Use command line.
- Use Remote Shutdown Dialog.
- Use batch files (mainly for multiple computers).
- Use Windows Remote Desktop Connection.
Method 1. Shutdown computer remotely via cmd
Command Prompt (cmd), as a feature of Windows, can provide an entry point for entering MS-DOS (Microsoft Disk Operating System) commands and other computer commands. Just like restart remote computer via cmd, by entering a valid command, you can achieve the purpose of shutting down computer remotely.
Step 1. Click Start, find Windows System, and expand it. Right-click Command Prompt, select More, and click Run as administrator.
Step 2. Enter “shutdown/?” in the Command Prompt to view all shutdown and restart commands.
Step 3. Enter “shutdown -r -m \\ Machine Name -t -60” again, and the computer can be shut down remotely in one minute.
Note: When you use it, you need to replace the machine name with the name of the target computer. The last number represents the shutdown delay time. “60” means the shutdown command will be executed after 60 seconds. If you want to shut down immediately, you can set the number to 1. “-r” stands for completely shutting down the computer. “-m//machine name” stands for the computer with the specified name. “-t” stands for the timeout setting before shutting down.
Step 4. After the command is executed, you can see the shutdown prompt pop-up window, click "Close" and wait for the automatic shutdown.
Method 2. Use Remote Shutdown Dialog
The Remote Shutdown Dialog needs to be opened through the command prompt. When in use, you only need to enter the target computer name and select shutdown. Compared with the cmd command line, the method is easier.
Step 1. Type “shutdown/i” in the Command Prompt window and then press Enter. You can add the computer that you want to restart.
Step 2. Add the computer name you then click OK.
Step 3. Switch the default Restart to Shutdown in the drop-down menu of "What do you want these computers to do". In addition, you can also change the display warning timer according to the situation, the default is 30 seconds. You can change the plan options and finally click OK. This method is the same as the above content, and a shutdown prompt window will also pop up. Click close, wait for the automatic shutdown.
Method 3. Use a batch file
If there are too many computers that need to shutdown remotely, it will waste a lot of time to shutdown remote computer via cmd or to use powershell to shutdown remote computer. To do this, you can use timer settings to create a batch file and let it execute at a specific time.
Use Notepad to enter a command to shut down the computer, such as “shutdown–m \\computername1–r”, where computer name needs to be replaced by the target computer name, and the number behind is used to distinguish different computers.
Finally, save the notepad with the extension name “.bat” and save it as all file formats with the name “restart.bat”, which can realize remote shutdown of multiple computers.
Method 4. Use Windows Remote Desktop
Windows Remote Desktop allows you to control any PC remotely anytime, anywhere, not only to provide remote technical support for others, but also to process important files remotely, which helps improve work efficiency.
How to query IP address and user name?
When using Windows Remote Desktop to shutdown computer remotely, the first thing we need to do is to find IP address and user name of the target computer (also the host computer).
Step 1. Press Windows key + R to invoke the Run dialog box. Type in “cmd” and press OK. Then type “ipconfig” and press Enter. Now you can see a group of IP addresses, of which the IPv4 address is the one you need.
Step 2. Then type “query user” to see the username.
Set up the host computer
Step 1. Navigate here: Start > Settings > System > Remote Desktop, and turn on Enable Remote Desktop.
Step 2. Find User accounts and click Select users that can remotely access this PC.
Step 3. After opening the Remote Desktop Users window, click Add to add users who are allowed to access this computer (you need to add already existing users to realize remote desktop).
Start remote control on the client computer
Step 1. The client computer doesn’t need any configuration. Just search for Remote Desktop Connection in the Search box. And then open it.
Step 2. Enter the IP address and user name in the Remote Desktop Connection interface to achieve connection (if you don’t know what your computer’s IP address and user name are, follow the tutorial below).
Step 3. After you’ve achieved connection successfully, you could see the screen of the remote computer. Click the Windows logo in the lower left corner, and then click Shut down to turn off the remote computer.
Why does the remote shutdown of the computer fail?
Some of you may still not shut down the computer remotely after following the above steps. This may be caused by the following reasons:
- The domain administrator has developed a group policy to prevent remote shutdown.
- Remote management or $ADMIN sharing is disabled.
- The account you log in does not have administrative rights.
On the whole, although there are many ways to shutdown computer remotely, they all have certain operational requirements, and the preliminary preparation steps are relatively complicated. Therefore, it is recommended to use a simpler method of remotely shutting down the computer—AnyViewer.
The easiest way to shutdown computer remotely: AnyViewer
If you think the above 4 methods are too cumbersome, you might as well try AnyViewer, another free option for shutting down computer remotely. It is applicable to multiple Windows versions, including Windows 11/10/8.1/8/7 and Windows Server 2019/2016/2012 R2. Compared with Windows Remote Desktop, you don’t need IP address or user name to shutdown computer remotely with AnyViewer, which further simplifies the operation steps.
AnyViewer has two connection methods: one is to send a control request, and the other is to connect input a security code. The following will introduce the operation steps of two methods respectively. You can choose according to your own situation.
- Connect the client computer (the controller computer) and the host computer (the controlled computer) to the Internet.
- Download and install AnyViewer on the client computer and the host computer respectively.
Methods 1. Send a control request
Step 1. Run AnyViewer on both computers and you can see the main interface of the remote access software. On the client computer, input the device ID of the host computer in the Partner ID box, and then click Connect.
Step 2. Then there will be a pop-up window, choose Send a control request to your partner. And then click OK.
Step 3. Then the host computer will receive a pop-up request. People sitting in front of the host computer need to click Allow to make the connection successful.
Step 4. Then you can either shutdown computer from the start menu or from Operation.
Methods 2. Input security code
There are two types of security codes:
- A permanent security code is set by you in advance.
- A temporary security code is automatically generated and will change every time.
Step 1. First, you need to set up a permanent security code on the host computer. Click Settings and then Recipient. Tick the third option. Then set the security code you want in the box. Then click OK to finish the set-up process.
Step 2. Return to the main interface of AnyViewer on the host computer, you could see the Temporary Security Code.
Step 3. On the client computer, input the device ID of the host computer in the Partner ID box, and then click Connect. Then there will be a pop-up window, choose Input a security code, then input either the permanent security code or the temporary security code of the host computer and click OK. This allows you to achieve remote control directly.
Step 4. Then you can either shutdown computer from the start menu or from Operation.
Learning to shutdown computer remotely can be very useful for us. But some of the operations of the above 4 methods are too complicated. If you want an easy way to shutdown computer remotely, you can try to use AnyViewer. It is free remote control software for Windows, which is the best replacement for Windows Remote Desktop.