Last active
November 15, 2016 12:21
-
-
Save ibaaj/8118121 to your computer and use it in GitHub Desktop.
prevent from sleeping a Windows computer (and let working an alarm clock program )
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
Config . | |
powercfg /c BaajAlarm | |
powercfg /x BaajAlarm /monitor-timeout-ac 15 | |
powercfg /x BaajAlarm /monitor-timeout-dc 15 | |
powercfg /x BaajAlarm /disk-timeout-ac 15 | |
powercfg /x BaajAlarm /disk-timeout-dc 15 | |
powercfg /x BaajAlarm /standby-timeout-ac 0 | |
powercfg /x BaajAlarm /standby-timeout-dc 0 | |
powercfg /x BaajAlarm /hibernate-timeout-ac 0 | |
powercfg /x BaajAlarm /hibernate-timeout-dc 0 | |
powercfg /s BaajAlarm | |
NET STOP wuauserv | |
Restore | |
powercfg /s Normal | |
powercfg /d BaajAlarm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment