How to Change What Power Button does in Windows 11

Imagine you are working on a project which is due the next morning. You work all day and stay up the night before adding the finishing touches to the same. However, you accidentally hit the power button while in the middle of the project because of which your computer shuts down. It is then when you recall you hadn’t saved your work before the computer turned off. This leaves you no choice but to go through everything all over again when your system restarts.

As frustrating as this can be, there is always a way around. We all know that the power button on your computer/ laptop/ Mac is used to power on and power off our respective systems. But did you know that there is a way to disable power button in Windows 11. Apart from that, you can also reconfigure the actions assigned to your power button in Windows 11.

This comes in handy especially if you have a child or any pet at home who generally plays around your system. Knowing how to change what the power button does in Windows 11 will help you save precious time. In this article, we will guide you through how to change what power button does in Windows 11. 

How to Change What Power Button does in Windows 11 using Control Panel

The control panel has a list of all the utility tools required for easy functioning. To change what power button does in Windows 11, you need to first login to your system as an ADMINISTRATOR and then launch Control Panel on your Windows 11.

Here is how to change what power button does in Windows 11 using Control Panel.

  1. Login to your system as an Administrator
  2. Open Control Panel by searching it in the start menu
  3. Now, go to Hardware and Sound
  4. Locate the Power Options
  5. Click on the link that says Change what the power buttons do
how to change what the power button does windows 11
  1. Now, you will see all the options that take place when you press your system’s power button
  2. Locate Power and sleep button settings
  3. Now, click on the drop-down menu next to When I press the power button
change what power button does windows 11

Here are the different options you will see in the drop-down menu

Do nothingAs the name suggests, nothing happens when you press the power button
SleepPut your system into a low-power sleep mode
HibernateHere, your system automatically saves the session in your memory disk before powering off automatically. This generally happens automatically if you run out of battery during the middle of a session
Shut downShut down your PC post pressing the power button
Turn off the display Shuts off the computer display while keeping the system running
  1. On laptops, select other than the “Shut down” option under “On battery” and “Plugged in.”
  2. You can opt to choose the “Do Nothing” option if you want to prevent the accidental shutdown
  3. When selected, click on Save Changes
  4. Close the control

This now will prevent the accidental shutdown every time you press the power button. 

How to Change What Power Button does in Windows 11 using Command Prompt

In addition to the control panel, you can also use the command prompt to change what the power button does in Windows 11. Trace the following steps.

  1. Go to the Start Menu
  2. Type in Command Prompt in the search bar
  3. Right-click on Command Prompt
  4. Select Run As Administrator
change what power button does windows 11
  1. Insert the following command and press Enter
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0
  1. This command will change the default action when the computer is plugged in
  2. Next, insert the given command and press Enter
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0
  1. This will change the default action when the computer is NOT PLUGGED IN
  2. You will see that both these commands end up with the “0” value. This is the index value that defines the action the power button will perform. 
  3. In order to change the functions of the power button, you can use the following available values that will perform the respective action
0Do nothing
1Sleep
2Hibernate
3Shut down
4Turn off the display

The image below shows an example of changing the power button action to Do nothing. Replace the “0” with “1” to change the power button action to Sleep, “2” will change to hibernate, “3” will change to shut down and “4” to turn off the display.

disable power button windows 11

Note: Do NOT use 2 if your system does not support hibernation

  1. To apply the changes, insert the following command and press Enter
powercfg -SetActive SCHEME_CURRENT
  1. Your changes have now been saved
  2. The next time you press your power button, it will show you the actions that you have selected

Conclusion

Accidental shutdowns are nothing but just another root cause of frustration. These accidental shutdowns can cost you valuable data and work at times. But ways are using which you can make your way around all this. Windows comes with dozens of features. Some of these features allow you to reconfigure the functions assigned to the different buttons.

Similarly, our article walks you through how to change what the power button does in Windows 11. Let us know in the comments section below if you found our article helpful.

Similar Posts

Leave a Reply

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