How to Customize Windows 11 Power Button Settings: A Step-by-Step Guide

The power button in your PC is not merely to power up your PC. You can also press it while your PC is on to perform certain tasks, such as shutdown or restart. Many users set such functions, but you can also set it to do nothing if you’re afraid of pressing it unintentionally.

It’s very easy to change the setting for the power button action. Regardless of the method you use, it takes less than a minute. Laptop users can also change the setting for each power mode (plugged in or on battery).

So, let’s move on to the possible methods for this process on a Windows 11 PC.

How To Change Windows 11 Power Button Settings

How to Change the Keyboard Power Button Settings

This section deals with changing your system’s action if you press your keyboard’s power button. If you want to change the options for the power button on the GUI (e.g., Start Menu), head over to the next section.

There are many ways to change the power button settings. These methods have different precedence. So read carefully and pick one according to your preference.

Through Power Options

This is the default method of changing the power button settings using the GUI. Power Options is a Control Panel feature that configures all power settings. You can either change the power button actions for all power plans or a specific one.

For All Power Plans

Here are the steps for this method:

1- Press Win + R to open Run.

2- Type powercfg.cpl and press Enter. It will load Power Options.

3- Click Choose what power buttons do.

4- Click on the drop-down boxes next to When I press the power button.


power-button-settings-control-panel

5- Select the option you want.

6- Click Save Changes.

For Specific Power Plan

Follow the steps below to change power button settings for a specific plan:

See also  How to Fix Driver Update Issues in Windows: Effective Solutions

1- Open Power Options.

2- Click on Change plan settings for your power plan.

3- Select Change advanced power settings.

4- Expand Power buttons and lid Power button action.


specific-power-button-settings-control-panel

5- Click the drop-down boxes for On battery and Plugged in, and set the option you want.

6- Click Apply and Ok.

If you can’t see the Power buttons and lid option, open Command Prompt as admin and enter the following command:

REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettingsf971e89-eebd-4455-a8de-9e59040e7347ca83367-6e45-459f-a27b-476b1d01c936 /v Attributes /t REG_DWORD /d 2 /f

Using Group Policy Editor

Another way to change power button actions is by changing its policy settings. Such policies take precedence over the Power Options settings. To change the power button policies,

1- Open Run and enter gpedit.msc to open the Local Group Policy Editor.

2- Go to Computer Configuration Administrative Templates System Power Management Button Settings.

3- Double-click on Select the Power button action (plugged in).


power-button-settings-policy

4- Check Enabled and set Power Button Action to your preference.

5- Click Apply and Ok.

6- Apply the same process for Select the Power button action (on battery).

With Registry Editor

You can also change the Power Button Settings in the registry configuration. You can do so by using the Registry Editor. First, back up your registry and then, follow the steps below:

1- Launch Run and enter regedit. It directs you to the Registry Editor.

2- Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\

3- Right-click on Microsoft and select New Key.

4- Set its name to Power.

5- Create a new key PowerSettings inside Power.

6- Create new key 7648EFA3-DD9C-4E3E-B566-50F929386280 inside PowerSettings and go inside this key.

7- Right-click on an empty area and select New DWORD (32-bit) Value.

8- Set its name it ACSettingIndex.

9- Create another DWORD value and name it as DCSettingIndex.

10- Double-click on the entries to set their Value data to any of the following options:

  • Take no action = 0
  • Sleep = 1
  • Hibernate = 2
  • Shut down = 3
See also  How To Fix “Startup Repair Couldn’t Repair Your Windows PC”

ACSettingIndex specifies the power button action for the plugged-in mode. And the other entry determines the action for the on battery power mode.

You don’t need to create the keys and entries if they already exist. Simply change their values.

Using Command-line Interface

If you’re familiar with the CLI, you might find it easier to use it to change such settings. You can change the power button settings for the current or any specific power plan. Pick one according to your need.

For the Current Power Plan

Here are the steps to change power button actions for your current power plan using a CLI:

1- Open the Command Prompt or Windows PowerShell.

2- Enter the following commands:

powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 “Option Index”

powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 “Option Index”

3- Make sure to replace “Option Index” with a value as follows:

  • Do nothing – 0
  • Sleep – 1
  • Hibernate – 2
  • Shutdown – 3
  • Turn off display – 4


power-button-setting-command-prompt

4- Type powercfg -SetActive SCHEME_CURRENT and press Enter.

For a Specific Power Plan

You need to know the GUID of a power plan to change its setting. The complete process of altering power button settings is as follows:

  1. Open the Command Prompt or Windows PowerShell.
  2. Enter powercfg /l and note the GUID number for the plan you want.
  3. Enter the same commands as the above method while replacing SCHEME_CURRENT with the GUID number.

How to Change the GUI Power Button Options

If you want to change the GUI Power Menu options rather than the power key settings, this is the section for you. The power menu always contains Restart and Shut down. But you can choose if you want to show the Hibernate or Sleep options.

See also  How to Fix 'Reboot and Select Proper Boot Device' Error: Effective Fixes

There are many ways of doing so, such as:

Through Power Options

Using the Power Options is always the usual method of making any changes to your power settings. Here’s what you need to do to change the power menu options:

1- Open Run and enter powercfg.cpl.

2- Click Choose what power buttons do.

3- Select Change settings that are currently unavailable.

4- Under Shutdown settings, check/uncheck Sleep and Hibernate for the Power Button menu.


power-menu-options-control-panel

5- Click Save Changes.

With CLI

You can also enable or disable the two options using the Command-line Interface. Follow the instructions below to use the Command Prompt for this purpose:

  1. Press Win + R to open Run.
  2. Type cmd and press Ctrl + Shift + Enter to open the elevated Command Prompt.
  3. Enter the following options to change the hibernate/sleep options in the Power menu:
    • Enable Hibernate: powercfg /hibernate on
    • Disable Hibernate: powercfg /hibernate off
    • Enable Sleep: powercfg /sleep on
    • Disable Sleep: powercfg /sleep off

Using Group Policy Editor

Another way to change the power menu options is through their policy settings. To do so,

  1. Enter gpedit.msc on Run.
  2. Head over to Computer Configuration Administrative Templates Windows Components File Explorer.
  3. Double-click on Show hibernate in the power options menu or Show sleep in the power options menu.
  4. Check Enabled or Disabled according to your preference and click Ok.

With Registry Editor

You can also go to the Registry Editor and change the entries corresponding to the options. Follow the directions below to do so:

  1. Enter regedit on Run.
  2. Go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings
  3. Set ShowHibernateOption and ShowSleepOption to 1 to enable and 0 to disable them.

If you don’t see FlyoutMenuSetting, create the key. Then, create the two DWORD entries as we mentioned above and set their value accordingly.

Mohamed SAKHRI
Mohamed SAKHRI

I'm the creator and editor-in-chief of Tech To Geek. Through this little blog, I share with you my passion for technology. I specialize in various operating systems such as Windows, Linux, macOS, and Android, focusing on providing practical and valuable guides.

Articles: 1310

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

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