Change Power Button Settings in Windows 11 and 10

Illustration of a power button beside the Windows logo

Updated October 29, 2026.

You can change what a short press of your PC’s power button does while Windows is running. Open Control Panel’s Power Options, choose the button action, and save it. The choices depend on your device.

First, decide what you want to change. The physical button, the timer that puts an idle PC to sleep, and the laptop lid have separate settings. Changing one does not necessarily change the others.

Change the power-button action in Windows 11 or 10

Use the Control Panel route in Microsoft’s power-button guide:

  1. Search for Control Panel. Open System and Security > Power Options.
  2. Select Choose what the power buttons do.
  3. Next to When I press the power button, choose an action. Set On battery and Plugged in separately if both appear.
  4. Select Save changes.

If a control is unavailable, select Change settings that are currently unavailable if offered. A work or school policy may still prevent changes.

Which action should you choose?

Action What it does When it may help
Do nothing Ignores the normal button press while Windows is running. You often press the button accidentally.
Sleep Uses a low-power state and keeps your session ready to resume. You are taking a short break.
Hibernate Saves the session to storage and uses less power than sleep. You will be away longer; it must be supported and enabled.
Shut down Starts Windows shutdown. You want a quick way to finish using the PC.

Microsoft explains the differences in its power-state documentation. Some devices also show a display-off choice. Use the options your PC actually offers.

Save open work before testing a new action. To undo it, return to the same page, restore your previous choice, and save again.

Screen and sleep timers are a separate setting

To change what happens when you leave the PC idle:

  • Windows 11: Open Settings > System > Power & battery, then find the screen and sleep timeouts. Microsoft currently calls this section Screen, sleep, & hibernate timeouts.
  • Windows 10: Open Settings > System > Power & sleep and set the screen and sleep delays.

A screen turning off does not necessarily mean the PC has gone to sleep. If you want to secure the session, press Windows + L or follow our guide to locking Windows automatically.

Why are choices missing or locked?

What you see What to check
No Hibernate option Check whether hibernation is available and enabled. Missing support cannot be fixed just by selecting a different button action.
No battery column A desktop without a battery usually only needs the plugged-in setting.
Settings are locked or revert Ask the administrator of a managed device. A company policy may control the action.
The button still behaves differently Check the correct battery/power column and confirm you are testing a short press while Windows is running.

For missing sleep states, run powercfg /a in a terminal. It reports available states and often explains why others are unavailable. It does not change your settings.

Optional: change the action with powercfg

On a PC you administer, open Command Prompt as administrator. This example selects Sleep for the current power plan:

powercfg /setacvalueindex SCHEME_CURRENT SUB_BUTTONS PBUTTONACTION 1
powercfg /setdcvalueindex SCHEME_CURRENT SUB_BUTTONS PBUTTONACTION 1
powercfg /setactive SCHEME_CURRENT

The first line applies on mains power; the second applies on battery. Microsoft documents button-action values as 0 = Do nothing, 1 = Sleep, 2 = Hibernate, 3 = Shut down. See its powercfg reference for the command syntax. A command does not add an unsupported sleep state or override your organization’s policy.

Administrators can also manage these actions through policies under Computer Configuration > Administrative Templates > System > Power Management > Button Settings, as listed in Microsoft’s policy documentation. Home users can use the ordinary settings above without installing a Group Policy editor.

Frequently asked questions

Does this change the power icon in the Start menu?

No. This guide changes the physical button’s normal action. The Start menu offers separate power commands.

Can I stop an accidental press from shutting down the PC?

Choose Do nothing for the relevant power source, save it, and test with a short press after saving your work.

Does Do nothing disable the button completely?

No. It is a Windows action setting. Starting a powered-off PC and a forced shutdown are separate behaviors.

What happens if I hold the button down?

A long press can force the PC off instead of following the normal Windows action. That can lose unsaved work. Do not use it to test this setting.

Why does the action change when I unplug the laptop?

The battery and plugged-in choices can be different. Check both columns.

Do I need to download a power-button app?

No. Windows includes the settings and powercfg tool used here.

Can I use this on Windows 10?

The Control Panel route also applies to Windows 10. Its standard free support ended on October 14, 2025; these steps do not change its support status.