Today, Mytour will guide you on how to use a Windows computer to shut down another Windows PC within the same local area network (LAN).
Steps
Locate the target computer's IP address

Ensure the target computer meets all necessary conditions for remote shutdown. To remotely shut down a computer using another device on the same LAN, the target PC must meet the following criteria:
- It must be powered on and connected to the same local network as the computer you're using to initiate the shutdown.
- It must share the same administrator account as the computer you're using to perform the shutdown.







Click on the Status (Status) tab located at the top left corner of the window.

Click on View your network properties (View network properties). This link is found at the bottom of the page.
- You may need to scroll down to locate this link.

Scroll down to the "Wi-Fi" heading near the middle of the page.

Look for the "IPv4 address" (IPv4 address) heading. The sequence of numbers and dots to the right of the "IPv4 address" heading is the current computer's IP address. You will use this IP address to specify the target computer for shutdown.
- The IP address might end with a slash and additional numbers (e.g., "192.168.2.2/24"). If so, ignore the slash and the numbers following it when entering the IP address.
Enable the computer for remote shutdown


- Ensure you are still using the target computer.

Open the Registry Editor as follows:
- Type regedit.
- Click on 'regedit at the top of the Start window.
- Click Yes when prompted.

Navigate to the "System" folder. Use the folders in the top-left corner of the Registry Editor window to proceed:
- Double-click the "HKEY_LOCAL_MACHINE" folder to expand it.
- Double-click the "SOFTWARE" folder.
- Scroll down and double-click the "Microsoft" folder.
- Scroll down and double-click the "Windows" folder.
- Double-click the "CurrentVersion" folder.
- Scroll down and double-click the "Policies" folder.
- Click on the "System" folder.

Right-click the "System" folder. A dropdown menu will appear.

Select New (New) from the dropdown menu. A submenu will pop up.

Click on DWORD (32-bit) Value. This option is located in the pop-up menu. A DWORD value icon will appear on the left side of the page.

Type LocalAccountTokenFilterPolicy and press ↵ Enter. The DWORD value will be identified.

Double-click the "LocalAccountTokenFilterPolicy" value to open it. A window will pop up.

Enable the value. Change the "Value data" field to 1, then click OK at the bottom of the pop-up window.
- At this point, you can exit the Registry Editor.
Enable Remote Registry access.
Restart the computer.Start
Power
RestartUse the remote shutdown interface



Search for Command Prompt. Type command prompt to locate it.



Click on Run as administrator. This option is found in the dropdown menu.

Click Yes when prompted. Command Prompt will open in administrator mode.

Enter the computer's login credentials. Type net use \\address (replace "address" with the IP address you noted earlier), press ↵ Enter, and enter the administrator email and password when prompted.
- For example, you might type net use \\192.168.2.2 here.

Open the remote shutdown interface. Type shutdown /i and press ↵ Enter. A window will pop up.

Select the computer. Click on the IP address or name of the computer in the "Computers" text box at the top of the window.
- If you don't see the computer's name or IP address, click Add..., then enter the computer's IP address and click OK. Next, you can click on the computer's name in the "Computers" text box.

Click the dropdown menu labeled "What do you want these computers to do". This option is located in the middle of the page. A dropdown menu will appear.

Click on Shutdown in the dropdown menu.

Set a time limit. Enter the time limit (in seconds) in the "Display warning for" text box.

Uncheck the "Planned" box on the right side of the page.
Enter a comment. In the "Comment" text box at the bottom of the window, type the explanation you want the target computer to display before shutting down.

Click OK at the bottom of the window. The specified computer will shut down.
Create a batch file to shut down multiple computers

Open Notepad. Click or double-click the Notepad app icon, which resembles a blue notepad.
- You may need to search for Notepad in the Start menu.

Enter the "shutdown" command along with the computer's IP address. Type the following command, replacing the placeholders with the target computer's information:
shutdown -s -m \\address -t -01
- Replace "address" with the target computer's IP address.
- You can change "01" to any numerical value. This represents the number of seconds to wait before the computer shuts down.

Press ↵ Enter, then add a line for another computer. You can repeat this process for multiple computers on the same network if desired.

Click File in the top-left corner of the Notepad window. A dropdown menu will appear.

Click Save As… in the dropdown menu. This option is located in the File dropdown. The "Save As" window will open.

Click the "Save as type" dropdown menu near the bottom of the window. A dropdown menu will appear.

Select the All Files option in the dropdown menu.

Add the ".bat" extension to the file. Click on the "File name" text box, type a name for the file, followed by the .bat extension.
- For example, if you want to create a batch file named "shutdown", you would type shutdown.bat.

Click Save at the bottom-right corner of the window. The batch file will be saved to the default location (e.g., "Documents").

Execute the file. Double-click the batch file to run it. All connected and powered-on computers listed in the file will shut down.
Tips
- If you know the name of the computer you want to shut down remotely (e.g., "DESKTOP-1234"), you can enter this name after the "\\" tag instead of using the IP address.
Warnings
- If computers on the LAN do not use static IP addresses, their IP addresses may change when the router restarts or when you switch networks. In such cases, you will need to recheck the target computer's IP address on the LAN.
