TechBuzzPro

How to Remotely Shut Down and Power Off a Computer

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can remotely shut down and power off a Windows computer on the same network using the built-in shutdown command from another PC, or over the internet through Remote Desktop, PowerShell remoting, or a third-party remote access tool. The computer must be reachable, you need an account with shutdown rights on that machine, and the remote shutdown feature must be allowed through its firewall. This guide covers the reliable methods for Windows-to-Windows shutdowns, plus what to do when the command is refused.

What You'll Need

  • Both computers running Windows (the steps below use Windows 10 and 11; menu labels can differ slightly by version and edition).
  • The target computer's name or IP address, and the username and password of an account that is an administrator on it.
  • Both machines on the same local network for the simplest method, or a working Remote Desktop or remote-access connection for the internet method.
  • The target PC awake and connected — a sleeping or powered-off machine cannot receive a shutdown command.

Step-by-Step

  1. Confirm you can reach the target. On the computer you will send the command from, open Command Prompt and run ping target-name (replace with the PC's name or IP address). Replies mean the machine is reachable; timeouts mean a network, firewall, or sleep problem to fix first.
  2. Allow remote shutdown on the target PC. On the target, open Windows Defender Firewall with Advanced Security, click Inbound Rules, and enable the rule named Windows Management Instrumentation (WMI-In) for the network profile you are using. The shutdown command relies on this. If you cannot find the rule, check that the Windows Firewall service is running.
  3. Make sure the target is not set to block remote shutdown. Open Local Security Policy (search for it in the Start menu), go to Local Policies > User Rights Assignment, and confirm your account is listed under Shut down the system. Administrators usually are by default; standard users are not.
  4. Send the shutdown command. From the sending PC, open Command Prompt and run:
    shutdown /s /m \\target-name /t 60 /c "Remote shutdown"
    This shuts the target down after 60 seconds and shows a message. Use /r instead of /s to restart, and /f to force-close apps that are blocking shutdown.
  5. Authenticate if prompted. If the command returns Access is denied, the sending account is not recognised on the target. Run the command from a Command Prompt opened as the same domain or local account that has admin rights on the target, or connect to the target's administrative share first with net use \\target-name\IPC$ /user:target-name\admin-username and enter the password when asked.
  6. Confirm the shutdown. The target shows a countdown and then powers off. To cancel during the countdown, run shutdown /a on the target itself — the abort command only works locally.
  7. For a computer outside your network, use Remote Desktop. Connect to the target with the Remote Desktop client, then shut it down from inside the session using the Start menu power button or shutdown /s /t 0 in its Command Prompt. This is the cleanest official method because you are already logged in with the right account.
  8. Alternatively, use a remote access tool. If Remote Desktop is not available (for example on Windows Home editions, which do not host RDP), install an official remote access app such as TeamViewer, AnyDesk, or Chrome Remote Desktop on both machines and use its power options or the target's own Start menu once connected. Only download these from their official websites.

Common Mistakes

  • Running the command against a computer that is asleep or off — it will simply time out. Wake it first or use Wake-on-LAN if configured.
  • Using a standard user account. Remote shutdown requires administrator rights on the target machine.
  • Forgetting the double backslash before the computer name in /m \\target-name. A single backslash produces a syntax error.
  • Assuming shutdown /a works remotely. It only cancels a shutdown on the machine where it is run.
  • Ignoring unsaved work. A forced shutdown (/f) closes applications without saving; warn anyone using the target first.

Tips

  • Use /t 0 for an immediate shutdown or a longer delay such as /t 300 to give people time to save work.
  • Add /d p:0:0 to record a planned shutdown reason in the event log — useful on shared machines.
  • Test the command with /r (restart) first on a machine you can physically reach, so you know the permissions and firewall are right before relying on it remotely.
  • Keep a written note of the target's exact computer name; typos are the most common cause of failed remote commands.
  • For regular maintenance, create a shortcut or script with the full command so you are not retyping it each time.

Troubleshooting

If the command fails, work from simplest to most involved. First, re-run ping to confirm the target is reachable. If it is not, check that both machines are on the same network and that the target is awake. Next, verify the firewall rule for WMI-In is enabled on the target and that the network profile is set to Private rather than Public, since Public profiles block more traffic.

If you get Access is denied, the account you are using lacks rights. Log in with an administrator account on the target, or use net use to authenticate to the target's IPC$ share before retrying. If the error mentions The RPC server is unavailable, the target's Remote Procedure Call service or firewall is blocking the request — restart the target's firewall service and re-check the inbound rule.

If the target starts to shut down but hangs, an application is refusing to close. Re-run the command with /f to force it. If Remote Desktop will not connect, confirm Remote Desktop is enabled on the target under Settings > System > Remote Desktop and that your account is allowed to connect. For remote access tools, check that the app is running on the target and that you are signed in with the same account on both ends.

Frequently Asked Questions

Can I shut down a computer that is on a different network?

Not with the plain shutdown command, which is designed for local networks. Use Remote Desktop, PowerShell remoting over a VPN, or an official remote access tool instead.

Does this work on Windows Home?

The shutdown command works on Home editions, but Remote Desktop hosting does not. For Home machines, use a remote access tool or the command-line method on the same network.

Can I cancel a remote shutdown?

Only from the target machine itself, by running shutdown /a during the countdown. There is no remote cancel switch.

Will I lose unsaved work?

Yes, if you use /f or the countdown expires while apps are open. Save work on the target before sending the command, or use a longer delay.

Why does the command say access is denied even though I am an admin?

Your admin rights are on the sending PC, not necessarily the target. Authenticate with an account that is an administrator on the target, or connect to its IPC$ share first.

Can I schedule a shutdown for later?

Yes. Use /t with a number of seconds, or create a scheduled task on the target that runs the shutdown command at the time you choose.