Last active
April 20, 2020 16:28
-
-
Save origamium/8e8c44defd32130e465cdb3566133c2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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