Skip to content

Instantly share code, notes, and snippets.

@jackinf
Created October 29, 2018 09:41
Show Gist options
  • Save jackinf/a7e9c306dd05980871675a2349c26451 to your computer and use it in GitHub Desktop.
Save jackinf/a7e9c306dd05980871675a2349c26451 to your computer and use it in GitHub Desktop.
Windows 10 - change power settings
# Thanks to https://stackoverflow.com/questions/15455864/powershell-set-lid-close-action/21634858#21634858
# When closing the lid...
# ...set the option to do nothing when plugged in
powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
# ...set the option to do nothing when using the battery
powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment