Skip to content

Instantly share code, notes, and snippets.

@origamium
Last active April 20, 2020 16:28
Show Gist options
  • Save origamium/8e8c44defd32130e465cdb3566133c2f to your computer and use it in GitHub Desktop.
Save origamium/8e8c44defd32130e465cdb3566133c2f to your computer and use it in GitHub Desktop.
@echo off
powercfg -devicequery wake_from_any >> devices.txt
for /f "delims=" %%a in (devices.txt) do (
powercfg /devicedisablewake "%%a"
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment