This repository provides a secure and robust method to disable all wake-up triggers that can cause your Windows machine to wake from sleep or hibernation unexpectedly β particularly during the night.
The solution works reliably on both Windows 10 and Windows 11, using a combination of PowerShell automation and optional persistent configuration via Task Scheduler.
- β
Disables all
WakeToRuntasks (where permitted) - β Disables wake-enabled devices (e.g., mouse, NIC, USB hubs)
- β Disables system wake timers in the active power plan
- β Compatible with both Windows 10 and Windows 11
- β Optionally installs a scheduled task to re-apply the fix at boot
- β
Uses
NanaRun/mINsUDO.exeto gain TrustedInstaller privileges when necessary
| File | Description |
|---|---|
disable_wakeup_2.ps1 |
The core PowerShell script that performs all actions (safe, non-destructive) |
install_scheduled_task.ps1 |
Installs a persistent fix as a SYSTEM-level scheduled task |
run_disable_wakeup_TI.bat |
Entry point to run the fix manually or install the scheduled task, auto-elevated via mINsUDO.exe |
mINsUDO.exe |
- PowerShell 5.1+ (default on Windows 10 and 11)
mINsUDO.exe(download manually)
π Download
mINsUDO.exefrom:
https://github.com/M2Team/NanaRun/releases
Place mINsUDO.exe in the same folder as the other scripts.
- Download or clone this repo
- Place
mINsUDO.exein the same folder - Run
run_disable_wakeup_TI.bat - Select option
[1]to disable wake timers now
The script logs output to a
.logfile and opens it in Notepad at the end.
- Follow steps 1β3 above
- Select option
[2]to install the scheduled task
This creates a task named DisableWakeTimersOnBoot, running as SYSTEM at every startup. It re-applies all protections automatically.
Unregister-ScheduledTask -TaskName "DisableWakeTimersOnBoot" -Confirm:$false- The script does not modify ACLs or deny permissions β unlike some older methods that use icacls to block UpdateOrchestrator tasks (which can break update processes).
- Using mINsUDO.exe -TI ensures the script runs with TrustedInstaller privileges, needed to disable some protected tasks.
- The script skips tasks or devices it cannot modify and logs all actions, including failures.
MIT License. Use at your own risk.