Created
February 27, 2016 13:48
-
-
Save altbdoor/d26f8902a9cab0cd2814 to your computer and use it in GitHub Desktop.
Switch between High Performance and Energy Saver mode in Windows.
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
set HIGHPERF= 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c | |
for /f "tokens=2 delims=:(" %%x in ('powercfg.exe -getactivescheme') do set ACTIVE=%%x | |
if /i %ACTIVE%==%HIGHPERF% ( | |
powercfg.exe -s a1841308-3541-4fab-bc81-f71556f20b4a | |
) else ( | |
powercfg.exe -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment