If you also have little ones who always hit the power button on your computer and shut it down while you’re working, then the steps below will show you help you fix that. Changing the way, the power button works in Windows 11 requires that you log in as administrator and open the Control Panel app in Windows 11. There are different options available when one presses the power button while the computer is powered on.

Do Nothing: Nothing happens when power button is pressed. Sleep: Your PC goes into a low-power sleep mode. Hibernate: Your PC saves its session in memory disk and shuts down. Shut Down: Shuts down the PC when the power button is pressed. Turn off the Display: Your display turns off, but your PC keeps running.

How to prevent an accidental shutdown in Windows 11

As mentioned above, by default, if one presses the power button while the computer is on with Windows 11, the computer shuts down without first saving your work. You can prevent that using the steps below. First, launch the Control Panel in Windows 11. In the Control Panel, select the Hardware and Sound category. In the Hardware and Sound category, locate the Power Options section and click Change what the power buttons do. On the next page, you can choose the power settings you want for your computer. Under the Power and Sleep Button Settings, locate the power button icon next to When I Press the Power Button. Using the drop-down for the power button selection, you’ll have these options available to choose from:

Do Nothing: Nothing happens when power button is pressed. Sleep: Your PC goes into a low-power sleep mode. Hibernate: Your PC saves its session in memory disk and shuts down. Shut Down: Shuts down the PC when the power button is pressed. Turn off the Display: Your display turns off, but your PC keeps running.

To prevent an accidental shutdown of your PC, select Do nothing from the option available. Save your changes and exit. The next time the power button is pressed while in the middle of your work, it will not shut down the PC on you. That should do it! Conclusion: This post showed you how to disable the computer power button in Windows 11. If you find any error above or have something to add, please use the comment form below.