Skip to content

Instantly share code, notes, and snippets.

@focusmade
Created December 3, 2021 19:14
Show Gist options
  • Save focusmade/ff10bf231e92b1e04ff96b9e327c45ba to your computer and use it in GitHub Desktop.
Save focusmade/ff10bf231e92b1e04ff96b9e327c45ba to your computer and use it in GitHub Desktop.
configure an "always-on" power profile for laptops and desktops
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