The power button on your PC doesn’t have to just shut everything down. In Windows 11 25H2, you can customize exactly what happens when you press it—whether that’s putting your PC to sleep, turning off the display, or doing nothing at all.

This is especially useful if you want to avoid accidental shutdowns, improve workflow, or optimize power usage on laptops.

Here’s a complete, updated guide covering all methods—from simple settings to advanced tweaks.

How to Change Power Button Action in Windows 11 25H2

Method 1: Change Power Button Action via Control Panel (Easiest)

This is the quickest and safest way for most users.

Steps:

1- Open the Control Panel by typing Control Panel in the Windows search bar and selecting it from the results.

2- In the Control Panel, click on Hardware and Sound’.

img 69da4737df4bb

3- Under the ‘Hardware and Sound’ section, click on ‘Change what the power buttons do’ found under ‘Power Options’.

img 69da4738ac185

4- On the next page, you’ll see options to customize the power button’s behavior. Find the dropdown menu labeled “When I press the power button”. Here, you can select an action for both ‘On battery’ and ‘Plugged in’ modes. The available options are:

  • Do Nothing: The power button will not perform any action when pressed.
  • Sleep: Puts your computer into a low-power state while preserving your session.
  • Hibernate: Saves your current session to the hard drive and powers off the computer.
  • Shut Down: Closes all programs and turns off your computer completely.
  • Turn off the Display: Switches off the screen while keeping the computer running.
img 69da473964338

5- After selecting your preferred actions, click on ‘Save changes’ at the bottom to apply the settings.

img 69da473a1fccb

Note that the available options may vary depending on your device. For instance, laptop users might also see settings for ‘When I close the lid,’ while some desktop computers may not support certain power states, such as ‘Turn off the display,’ if the hardware does not support them.

Method 2: Use Command Prompt or PowerShell (Advanced)

For power users or admins, you can change settings using powercfg.

Open terminal as administrator

  • Search for Command Prompt or PowerShell
  • Right-click → Run as administrator

Set action for battery mode:

powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 VALUE
img 69da473ac8ded

Set action for plugged-in mode:

powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 VALUE

Replace VALUE with:

ActionValue
Do nothing0
Sleep1
Hibernate2
Shut down3
Turn off display4

⚠️ After running commands, apply changes with:

powercfg -setactive SCHEME_CURRENT

Method 3: Change Power Button via Registry Editor

This method offers deeper control but should be used carefully.

Steps:

1- Press Windows + R to open the Run dialog box. Type regedit and click ‘OK’ to launch the Registry Editor.

image 3

2- Navigate to the following registry path:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft
img 69da473b73b32

3- Right-click on the ‘Microsoft’ key, select ‘New’, then click on ‘Key’. Name this new key Power.

img 69da473bd7886

4- Right-click on the newly created Power key, select ‘New’, and choose ‘Key’ again. Name this key PowerSettings.

img 69da473c98133

5- Inside the PowerSettings key, create a new key named 7648EFA3-DD9C-4E3E-B566-50F929386280. If this key already exists, you can skip this step.

6- With the 7648EFA3-DD9C-4E3E-B566-50F929386280 key selected, right-click in the right pane, select ‘New’, and then click on ‘DWORD (32-bit) Value’. Name this value ACSettingIndex for plugged-in settings or DCSettingIndex for battery settings.

img 69da473d4cf75

7- Double-click on the DWORD value you created. In the ‘Value data’ field, enter one of the following numbers corresponding to your desired action:

  • Do Nothing: 0
  • Sleep: 1
  • Hibernate: 2
  • Shut Down: 3
image 4

8- Click ‘OK’ to save the changes. If you wish to set different actions for plugged-in and battery modes, create both ACSettingIndex and DCSettingIndex DWORD values and assign them accordingly.

Method 4: Use Group Policy Editor (For System-Wide Control)

Best for businesses or shared PCs.

Steps:

1- Open the Local Group Policy Editor by pressing Windows + R, typing gpedit.msc, and clicking ‘OK’.

2- In the Group Policy Editor, navigate to:

Computer Configuration > Administrative Templates > System > Power Management > Button Settings
img 69da473e0d78e

3- Locate and double-click on ‘Select the Power button action (plugged in)’ to set the action when the computer is plugged in.

img 69da473ed597d

4- In the policy settings window, select ‘Enabled’. Then, choose your desired action from the ‘Power Button Action’ dropdown menu.

5- Click on ‘Apply’, then ‘OK’ to save the changes.

img 69da473f274a7

6- To set the action when the computer is on battery power, double-click on ‘Select the Power button action (on battery)’ and repeat the same steps.

This method ensures that power button settings remain consistent and cannot be modified by individual users through the Control Panel. It is particularly useful in environments where strict control over system configurations is required.

Note that the Local Group Policy Editor is not available in Windows 11 Home edition. If you are using the Home edition, consider using the Registry Editor or Command Prompt methods instead.

Important Notes (Windows 11 25H2)

  • Some options depend on your hardware (e.g., hibernate may be disabled)
  • Desktop PCs may not show battery-related settings
  • “Turn off display” may not appear on all systems
  • Fast Startup can affect shutdown behavior

Best Settings Recommendations

For laptops:

  • Power button → Sleep
  • Lid close → Sleep or Hibernate

For desktops:

  • Power button → Shut down or Do nothing (to avoid accidents)

For productivity:

  • Power button → Turn off display

Final Thoughts

Customizing your power button in **Windows 11 25H2 is a small tweak that can make a big difference in daily use.

Whether you want to prevent accidental shutdowns, improve battery life, or streamline your workflow, there’s a setting that fits your needs.

Stick with the Control Panel method for simplicity, or use advanced tools like PowerShell and Group Policy for more control.

Support Tech2Geek ❤️

AI-powered search engines are making it harder for small independent blogs like ours to survive. If you find our guides helpful, please consider supporting us.

You can help by sharing our articles or making a small donation.

☕ Make a Small Donation

Every contribution helps us keep creating free tech guides and reviews.

Categorized in:

Tagged in: