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.
- 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:
- You can also see what Power Plan your currently using with the following command:
- To set a different power plan you can use the command below:
powercfg /SETACTIVE <Power Scheme GUID>
- The above command can then be used within your task sequence with a ‘Run a command line’ step
- 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
- Scroll down until you find the below settings
- 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: Shut down
- 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
- But bare in mind there are two settings to modify with this subgroup (what happens when plugged in and what happens when on battery).
- To set both your have to run the same command but with a slight change. The change is the beginning:
- After your happy and tested add in as a task sequence step!