How to change the power plan from the command line or with a shortcut

In Windows 8, Windows 7 and earlier, you can choose from predefined power plans which are a group of several power-related settings. If you are running a laptop on battery, you can choose the "Power Saver" plan. If you are running a desktop PC which is on AC power, you can set the "High Performance" plan. To switch the power plan, Windows gives you only two options if you use the notification area power icon. One of them is always the "Balanced" plan. This is not ideal because you have to open the Control Panel and go to Control Panel\System and Security\Power Options to access all the available power plans. Today, we will show you how to save your time and switch the power plan directly from the command line or with a shortcut so you don't need to open Power Options Control Panel every time.

Windows Vista, 7 and 8.x come with a special command line utility, powercfg.exe. It allows you to change various power options with command line switches. It also provides appropriate switches to change the current plan directly.
To activate the "Power Saver" plan, open the command prompt and type the following command:

powercfg.exe /setactive a1841308-3541-4fab-bc81-f71556f20b4a

It will switch your power plan directly.

To activate the "Balanced" power plan, you need to execute the following command:

powercfg.exe /setactive 381b4222-f694-41f0-9685-ff5bb260df2e

Finally, to activate the "High Performance" power plan, use this command:

powercfg.exe /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

You can create a shortcut for each command to switch between power plans quickly. Additionally, you can assign a global hotkey for every shortcut to switch between them with the keyboard. You can also pin them to the taskbar and set nice icons for the pinned shortcuts.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

11 thoughts on “How to change the power plan from the command line or with a shortcut”

  1. On my tablet, the only power option is balanced. Do you know how to change advanced power settings using command-line?

  2. That won’t work for anyone, except whoever has that ID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

    Each power option (balanced, perfomance, etc) has its unique ID, AND it is also unique for every single pc in this planet, like a fingerprint.

    I’m also looking for something generic, but I can’t find it yet.

    1. @Pepe – I tested these three commands on my own system, and they correctly switched the power profiles to the correct ones. So I don’t think the GUID is unique to each PC in this case.

      1. Old thread but hopefully this will help to someone in the future. In Windows 7 and newer lot of the guids and settings have freindly names (two of them mentioned in the post above), you can see them by doing: powercfg /aliases the built-in help does not list this parameter for some reason. also Powercfg /query is useful to determine what each alias means.

  3. The three GUID numbers provided are the same for my system, but you can verify if for yourself on your computer with the command: POWERCFG -LIST

    The powercfg utility support a huge number of options to modify the power settings. To review the built-in user help, run the command: POWERCFG /?

    The command window in my case didn’t hold the entire result, so I dumped the results into a text file to make it easier to review, using the command: POWERCFG /? > POWER-HELP.TXT

    By default, the command window should create the text file in the path: C:\Users\

    1. Part of my last comment was cut off after “C;\Users\”. The default path for the command window is

      where “Your_Username” is the your Windows logon name.

  4. This was excellent. I was able to activate ‘Balanced’ plan with this, but apparently this is NO plan for my Windows. WHat do I mean? According to the Power Setting, I’m not using any plan, because the Balanced plan has somehow disappeared. The CMD does recognize that this plan is active, and it even recognizes it as balanced in the command ‘aliases’ but not in the command ‘list’, instead the plan’s name is ‘*’. Any way to fix this? Thanks.

  5. Hey for anyone reading this later, you can create new power plans, just hit the windows key and search for ‘power options’ (for windows 7 etc) or ‘choose a power plan’ (windows 10) and then click on ‘create a power plan’ on the left side of the screen.

    once you have created a name and all of the settings you like (monitor, never hibernate, etc, most of the time 0 minutes means disabled), you can follow the steps above after you go to windows command line (type cmd into search bar) and run:
    powercfg /L

    this will list all of the power plans and there id’s

Leave a Reply

Your email address will not be published.

Exit mobile version
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.