Created
December 3, 2021 19:14
-
-
Save focusmade/ff10bf231e92b1e04ff96b9e327c45ba to your computer and use it in GitHub Desktop.
configure an "always-on" power profile for laptops and desktops
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
Import-Module $env:SyncroModule | |
# | |
# configure an "always-on" power profile for laptops and desktops | |
# | |
#Set display sleep to 5 minutes when on AC | |
c:\windows\system32\powercfg.exe -change -monitor-timeout-ac 20 | |
#Set display sleep to 5 minutes when on battery | |
c:\windows\system32\powercfg.exe -change -monitor-timeout-dc 5 | |
#Set hard drive sleep to 10 minutes when on AC | |
c:\windows\system32\powercfg.exe -change -disk-timeout-ac 30 | |
#Set hard drive sleep to 10 minutes when on battery | |
c:\windows\system32\powercfg.exe -change -disk-timeout-dc 10 | |
#Set Sleep to never when on AC | |
c:\windows\system32\powercfg.exe -change -standby-timeout-ac 0 | |
#Set Sleep to 10 minutes when on battery | |
c:\windows\system32\powercfg.exe -change -standby-timeout-dc 10 | |
#Set Hibernation to never when on AC | |
c:\windows\system32\powercfg.exe -change -hibernate-timeout-ac 0 | |
#Set Hibernation to 10 minutes when on battery | |
c:\windows\system32\powercfg.exe -change -hibernate-timeout-dc 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment