How to Shut Down a PC via Wi-Fi: A Complete Guide to Remote Control

Remote computer management is no longer the preserve of system administrators at large corporations. Today, any home network user can turn their laptop or smartphone into a remote control for a desktop PC. This is especially useful when you need to shut down a powerful machine from another room or reboot a frozen server without physical access to the keyboard. This capability is based on Wake-on-LAN technology and specialized data transfer protocols.

The main difficulty is that by default the operating system does not allow external devices to initiate shutdown. Network card must be in constant listening mode even when the computer is turned off or in sleep mode. It is through Wi-Fi router A magic packet is sent that commands the power state to change. Without proper configuration of the router and network adapters, this function will remain unavailable.

In this article, we'll cover every setup step, from enabling features in the BIOS to running commands through a mobile app. You'll learn how to secure your network from unauthorized access and the nuances of the UDP protocol when transmitting control signals. Understanding these processes will allow you to create a convenient smart home ecosystem or simply simplify routine appliance maintenance tasks.

Principles of remote control via a local network

The foundation of remote shutdown is technology Wake-on-LAN (WoL)It was originally designed to turn on computers, but modern implementations allow similar mechanisms to be used for shutdown as well, although this often requires additional client-side software. The method involves sending a special data frame known as a "Magic Packet." This packet contains the unique address of the target network card— MAC address, repeated several times in a certain sequence.

When a computer is in sleep mode or even powered off (but plugged in), its network card continues to consume a minimal amount of power. In this state, it filters incoming traffic, ignoring regular data but responding to the specific Magic Packet signature. Wi-Fi connection In this case, it acts only as a transport medium, replacing a physical Ethernet cable, which adds its own peculiarities, since wireless adapters must support standby mode.

⚠️ Note: Wireless adapters often lose power when in deep sleep, making WoL over Wi-Fi less stable than over a cable. Make sure your router and adapter support power-saving standards to maintain the connection.

For successful implementation it is necessary that all devices are in the same local networkThe router acts as a dispatcher, forwarding messages to all connected clients. If you're outside your home network (via mobile internet), additional port forwarding or cloud-based intermediary services will be required, which goes beyond a simple local configuration.

Configuring BIOS and network card to receive signals

The first step is configuring the hardware. The computer must be ready to receive a signal before the operating system boots. To do this, you need to log in BIOS/UEFIThis is usually done by pressing Delete, F2, or F10 immediately after turning on the power. In the menu, find the section related to Power Management or Peripheral Settings (Advanced).

The parameter being sought is often called Wake on LAN, PME Event Wake Up or Power On By PCI-EIts value needs to be changed to EnabledAfter saving the settings and loading Windows, control passes to the network card drivers. Open device Manager, find your network adapter and go to its properties.

On the "Advanced" tab, ensure "Wake on magic packet" and "Allow this device to wake the computer" are enabled. It's crucial to uncheck "Allow the computer to turn off this device to save power" on the "Power Management" tab. If the system cuts power to the adapter, it won't be able to hear the command.

Why might my Wi-Fi adapter not work in sleep mode?

Many wireless modules completely disconnect from the router when entering power-saving mode to conserve battery life (especially in laptops). Unlike wired cards, they may not support listening mode without active CPU involvement.

In some cases it is necessary to update drivers Upgrade your network card to the latest version from the manufacturer's official website. Standard Windows drivers may not have full functionality for WoL wireless operation. Check if your network card supports it. router transmitting broadcast packets on wireless interfaces, as some models block them by default for security reasons.

Windows operating system configuration

After preparing the hardware, you need to configure firewall rules and network settings in Windows. The operating system must allow incoming connections for management. Open Control Panel and go to Power Options. Select the active plan and click "Change plan settings," then "Change advanced power settings."

In the window that opens, find the "Wireless adapter settings" → "Power saving mode" section and set it to "Maximum performance." This will prevent the Wi-Fi module from being disabled. Next, you need to configure Windows Defender Firewall. Create a new incoming rule, allowing the protocol. UDP on port 9 or 7, which are traditionally used for WoL.

☑️ Check Windows settings

Completed: 0 / 5

It's also worth checking your sharing settings. In the Network and Sharing Center, make sure network discovery is enabled for the current network (private). Without it, your computer may be invisible to other devices on the Wi-Fi network. Advanced users might find it useful to create a quick shutdown shortcut using the standard Windows command.

To create such a command, open Notepad and enter the following code:

shutdown -s -t 0 -m \\IP_ADDRESS_PC -f

Save the file with the extension .batRunning this file from another device on the network (with administrator rights and configured credentials) initiates a shutdown. However, a more flexible tool is the command line and PowerShell, which allow for more granular power management.

Using the Command Prompt and PowerShell

For those who prefer text-based commands, Windows provides powerful tools. The Command Prompt (cmd) allows you to send commands remotely if the remote management service is configured. However, for simple shutdown over the network, utilities or PowerShell scripts that emulate sending a Magic Packet are often used.

PowerShell allows you to use modules to interact with network devices. However, the most versatile method remains the built-in utility. shutdown in conjunction with remote command execution, if the service is enabled Remote Registry and access rights are configured. An example command for a local shutdown with a timer looks like this:

shutdown /s /t 60 /c"The system will shut down in 1 minute."

To do this remotely, add a key -m and the computer name or its IP. In home networks, this is often simplified, but in corporate environments with a domain Active Directory The safety requirements are stricter.

⚠️ Caution: When using remote shutdown commands, ensure that all unsaved data is saved. Force-closing applications with a key -f may result in loss of information.

An alternative is to use Telnet or SSH, if the appropriate server is installed on the PC (for example, OpenSSH for Windows). Connecting via SSH, you can execute the shutdown command as a local user. This is a more secure method, as the connection is encrypted, unlike standard WoL packets.

Third-party PC management applications

Manual configuration via BIOS and the command line may seem complicated for the average user. Fortunately, there are ready-made software solutions that automate the process. Applications like TeamViewer, AnyDesk or specialized utilities like Unified Remote And PC Remote take on all the technical work.

These programs install a client on a PC and a remote control app on a smartphone (Android or iOS). They operate over a standard internet connection, often using their own servers to relay commands, allowing you to control the computer even from another country. For local shutdown via Wi-Fi, they use the operating system's internal APIs.

📊 Which control method is closer to you?
Manual BIOS setup
Command line
Ready-made applications
Smart home (Home Assistant)

The advantage of such apps is the availability of widgets and voice control. You can tell your smartphone to "Turn off your computer," and the app will send the appropriate signal. Some of them support macros: for example, turning off your PC, monitor, and speakers with a single button. This is especially convenient for setting up a multimedia center.

Comparison of popular management methods:

Method Difficulty of setup Work via the Internet Security
Wake-on-LAN (WoL) High Only with port forwarding Low (no password)
Remote Desktop (RDP) Average Yes (with settings) High
TeamViewer / AnyDesk Low Yes (automatically) High
Smart home (Home Assistant) Very high Yes Depends on configuration

Integration with smart home systems

For owners of smart home ecosystems such as Home Assistant, Yandex Smart Home or Apple