Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How To Change Windows 11 Power Button Settings

How To Change Windows 11 Power Button Settings

Abhishek SilwalBy Abhishek SilwalJune 3, 2022
windows 11 power button

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.

Table of Contents

  • How to Change the Keyboard Power Button Settings
    • Through Power Options
      • For All Power Plans
      • For Specific Power Plan
    • Using Group Policy Editor
    • With Registry Editor
    • Using Command-line Interface
      • For the Current Power Plan
      • For a Specific Power Plan
  • How to Change the GUI Power Button Options
    • Through Power Options
    • With CLI
    • Using Group Policy Editor
    • With Registry Editor

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:

  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

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:
  3. powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 “Option Index”
  4. powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 “Option Index”
  5. 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
  6. 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.

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.

how-to
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

computer suddenly slow

Why is My Computer Suddenly Slow? 11 Ways to Fix It

March 31, 2023
scheduled task reboot

How to Create a Reboot Scheduled Task in Windows

March 31, 2023
slow computer startup

14 Ways to Fix Slow Computer Startup

March 26, 2023
boot loop

14 Ways to Fix Windows Boot Loop

March 19, 2023
how to change windows startup sound

How to Change Windows Startup Sound

March 17, 2023
scan disk windows 10

How to Scan Disk Windows

March 16, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
what-does-collate-mean-on-a-printer

What Does Collate Mean on a Printer?

March 31, 2023
usb-vs-pcie-wifi

USB Vs PCIe Wi-Fi—Which One is Better?

March 31, 2023
how often to replace laptop

How Often Should You Replace a Laptop

March 29, 2023
You may also like
computer suddenly slow

Why is My Computer Suddenly Slow? 11 Ways to Fix It

March 31, 2023
HTTP-Error-431

How to Fix HTTP Error 431

March 31, 2023
scheduled task reboot

How to Create a Reboot Scheduled Task in Windows

March 31, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.