SCCM | Set Power Scheme & Options in a TS

One thing that can really help a customers experience is selecting the appropriate power plan when building a task sequence. Enabling High Performance when needed can really improve the speed of the machine or setting what happens when the lid of the laptop is closed. To do this whilst building your laptops is really easy and i’ll show you below.

  1. First off, decide which power plan is best for you. I’ve used the Balanced power plan below. To list the available power plan use this command in CMD:
    powercfg /list

  2. You can also see what Power Plan your currently using with the following command:
    powercfg -GETACTIVESCHEME
  3. To set a different power plan you can use the command below:
    powercfg /SETACTIVE <Power Scheme GUID>
  4. The above command can then be used within your task sequence with a ‘Run a command line’ step
  5. Setting a power scheme setting like what happens when you shut the lid is a little more complex but works the same way. You first need to find the subgroups of the power scheme, this can be achieved with the following command:
    powercfg -Q 381b4222-f694-41f0-9685-ff5bb260df2e

  6. Scroll down until you find the below settings
  7. Your need a couple of things here. The first will be the GUID of the subgroup (Power buttons and lid), the second will be the GUID of the setting itself (Lid close action) and the third will be what you want to change the setting too. The chart below shows you want index number to add:Setting Index: 0
    Name: Do NothingSetting: 1
    Name: Sleep

    Setting: 2
    Name: Hibernate

    Setting: 3
    Name: Shut down

  8. You’ll then need to add all these three pieces of information into a single command which will look like the following:
    powercfg -SETACVALUEINDEX <POWER SCHEME GUID> <POWER SUBGROUP GUID> <POWER SETTING GUID> <INDEX NUMBER>
    powercfg -SETACVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 3
  9. But bare in mind there are two settings to modify with this subgroup (what happens when plugged in and what happens when on battery).
  10. To set both your have to run the same command but with a slight change. The change is the beginning:
    powercfg -SETACVALUEINDEX
    powercfg -SETDCVALUEINDEX
  11. After your happy and tested add in as a task sequence step!

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.