# Remote PC Power: Turn a Windows PC On/Off From Anywhere

> Turn your home Windows PC on, off and use it from anywhere with nothing port-forwarded: smart plug + BIOS AC-restore to power on, a key-protected power page to shut down or restart, Remote Desktop over Tailscale. Free and open source (MIT license).

Remote PC Power: Turn a Windows PC On/Off From Anywhere is a free AI agent skill on Agensi by Pratyush Anjan Sarangi, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Pratyush Anjan Sarangi](https://www.agensi.io/creators/pratyush-anjan-sarangi)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/remote-pc-power-turn-a-windows-pc-on-off-from-anywhere
- Tags: devops, productivity, tailscale, powershell, remote-desktop, windows-automation, wake-on-lan, remote-access

## About this skill

**Free and open source (MIT license).**

Wake-on-LAN doesn't work from outside your home network, and a sleeping PC can't be woken over the internet. This skill sets up the method that does work for a desktop PC, with nothing exposed to the internet:

- **ON:** a smart plug cuts and restores power; the BIOS setting *Restore on AC Power Loss = Power On* boots the PC by itself.
- **OFF:** a tiny phone-friendly power page (Shutdown, Restart, Lock, Cancel), reachable only over Tailscale or your home LAN and protected by a 144-bit key.
- **USE:** Remote Desktop with Network Level Authentication, over Tailscale.

### What your agent does
1. **Checks first (read-only):** runs `verify.ps1` and reports Windows edition, Python, Tailscale, power plan, firewall and BitLocker status.
2. **Asks only what it can't detect:** your smart plug model, whether the BIOS setting is done, how long you'll be away.
3. **Automates, with your approval** (elevated `install.ps1`; preview first with `-WhatIf`):
   - power page as a SYSTEM boot task in `C:\Program Files\remote-pc-power`, so it answers at the login screen
   - firewall rules scoped to the Tailscale adapter (100.64.0.0/10) and your local subnet on Private networks
   - Remote Desktop on, NLA required
   - never sleep on AC power, Fast Startup off
   - Tailscale unattended mode
   - optional: pause Windows Update (`-PauseUpdatesDays`), boot hardening (`-HardenBoot`, refused on BitLocker-protected drives)
4. **Hands you the manual checklist:** BIOS settings, the plug's power-on-after-outage state, Tailscale key expiry, phone setup.
5. **Walks you through the tests:** a plug-cycle test at home, then a remote test from mobile data.

### Safety built in
- The agent never toggles your smart plug and never adds Sleep/Hibernate (a sleeping PC is unreachable).
- Nothing is port-forwarded; RDP and the power page never get an "Any" firewall scope.
- The power-page key is never printed: it goes to your clipboard and an Administrators-only file.
- The installer refuses a Python that non-admin accounts can modify, because the power page runs as SYSTEM.
- Every change is recorded in `state.json`; `uninstall.ps1` reverses it.

### Requirements
- Windows 10/11 desktop. Pro or Enterprise for Remote Desktop (on Home the power parts still work; use another remote-screen app).
- Python 3.9+ from python.org, installed for all users.
- A free Tailscale account, on the PC and on your phone or laptop.
- A smart plug whose power-on state after an outage can be set to ON.
- A BIOS with "Restore on AC Power Loss" (most desktop boards have it).

The screenshots show the architecture, the power-cycle sequence and the power states, including the two traps (sleep, and a power cut mid-boot).

## Requires

- Runs on Windows only
- Python 3.9+ from python.org (all users)
- Tailscale account (free)
- Smart plug
- Optional: Windows Pro or Enterprise (for Remote Desktop)

Run install.ps1 with -WhatIf first. It needs Administrator: it changes firewall, Remote Desktop and power settings and adds a SYSTEM boot task. Every change is recorded; uninstall.ps1 reverses it.

## Known limitations

Requires physical smart plug. BIOS settings must be changed manually. Windows Home edition cannot host RDP. Python 3.9+ must be installed for all users via python.org.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Remote PC Power: Turn a Windows PC On/Off From Anywhere skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problems does this skill solve for remote desktop users?

This skill provides a structured framework to set up a resilient remote power and access system for Windows PCs using Tailscale and smart hardware. It solves the problem of hardware becoming unreachable due to power outages, failed Wake on LAN packets, or Windows updates while you are away.

### What hardware and accounts are required to use this skill effectively?

You will need a Windows PC (preferably Pro edition for RDP hosting), a physical smart plug, and an account with Tailscale. The skill also requires Python 3.9 or higher to be installed for all users on the workstation.

### What specific outputs or files will I receive after the setup?

The skill generates a local power management page as a SYSTEM boot task, a state tracked uninstaller, and a specific manual checklist for BIOS and smart plug settings. It also produces a verification report to confirm the environment is hardened against sleep modes and update restarts.

### Are there any types of computers or operating systems this skill cannot support?

This skill does not support Windows Home edition as a Remote Desktop host and is primarily designed for desktop hardware. Laptops have limited support due to battery behavior, and the system cannot automate the physical BIOS configuration or the initial smart plug pairing.

### How should I ask my agent to begin the configuration process?

You can start by asking your agent to verify your environment for remote access. You can also request a full installation to harden your PC against unexpected restarts or ask for a troubleshooting map if your computer fails to boot after a power cycle.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
