How to Remotely Shutdown a Computer on the Same WiFi Network Using CMD

How to Remotely Shutdown a Computer on the Same WiFi Network Using CMD

To remotely shut down a computer on the same WiFi network using the Command Prompt (CMD), follow these steps. However, please note that this process requires administrative privileges and certain settings on both the local and remote computers.

Prerequisites and Necessary Setup

Before attempting to remotely shut down a computer, ensure that:

The target computer is configured to allow remote shutdowns. Both the local and remote devices are connected to the same WiFi network. The firewall settings on both computers permit the execution of the remote shutdown command.

Steps to Remotely Shut Down a Computer

Enable Remote Shutdown on the Target Computer

On the target computer, access the Local Security Policy to enable remote shutdowns. Press Win R to open the Run dialog box. Enter and press Enter. Navigate to User Rights Assignment. Locate Force shutdown from a remote system and double-click it. Select Users or the group containing your user account, then click Add. Open Command Prompt with administrative privileges on your local computer. Search for cmd, right-click, and select Run as administrator. Use the shutdown command to remotely shut down the target computer:

Note: Ensure the remote computer is powered on and is connected to the same network before executing the command.

Using the Shutdown Command

shutdown /s /m ComputerName /t 0

Replace ComputerName with the name of the target computer or its IP address. The /s flag indicates shutdown, /m specifies the target machine, and /t 0 sets the timer to 0 seconds, meaning an immediate shutdown.

Alternative Command with Forced Shutdown

shutdown /s /f /m ComputerName /t 0

Add the /f flag to force the shutdown and close applications without warnings.

Additional Notes and Troubleshooting

If you encounter issues, check the network and sharing settings on the target machine to ensure it allows remote access. Common reasons for failure include:

Firewall blocking the command. Incorrect or incomplete configuration of remote shutdown permissions. The target computer not being connected to the same network.

By following these steps and ensuring the necessary prerequisites are met, you should be able to remotely shut down a computer on the same WiFi network using CMD effectively.