Keep your PC Cranked. Forever.
A Windows tool that prevents a PC from ever sleeping, hibernating, or shutting down. Works on the local machine or remote targets over the network.
- Local or Remote — Target the local machine or any remote Windows PC by hostname
- Comprehensive lockdown — Disables sleep, hibernate, shutdown, and automatic restarts at multiple levels (power settings, registry, scheduled tasks, user rights, and more)
- Overrides Group Policy — Locks registry keys to prevent GPO from reverting changes
- Portable — Single .exe, no installation required
- Windows 10/11 or Windows Server
- Run as Administrator
- For remote targets: PowerShell Remoting must be enabled on the target machine (
Enable-PSRemoting -Force)
- Download
PCCrank.exefrom the link above - Run as Administrator
- Select Local or Remote target (enter hostname if remote)
- Click CRANK
- Reboot the target machine for changes to take full effect
PCCrank applies 10 layers of lockdown:
- Power settings (powercfg)
- Registry policies for power, Windows Update, and Explorer
- Disables scheduled reboot tasks
- Removes shutdown user rights (secedit)
- Blocks shutdown.exe with deny ACLs
- Creates watchdog scripts to prevent sleep
- Scheduled tasks to run watchdog scripts
- WMI event subscription to abort shutdown attempts
- Locks registry keys against Group Policy override
- Protects scripts and task files from modification
This tool cannot prevent:
- Physical power button hold (4+ seconds)
- Power loss / unplugging
- Hardware failure or BSOD
- Hypervisor-level shutdown (if running as a VM)
- This tool applies irreversible changes. Reversal requires Safe Mode or recovery media.
- Test on a non-production machine first.
- In domain environments, this will override Group Policy
- Use at your own risk.
Requires PowerShell 5+ and PS2EXE module.
Install-Module ps2exe -Scope CurrentUser -Force
Invoke-PS2EXE -InputFile src\PCCrank.ps1 -OutputFile PCCrank.exe -NoConsole -RequireAdmin