Change this Windows setting right away -- especially if you have children or pets

Kids can accidentally or purposefully turn off your PC
(Image credit: Tom's Hardware)

If you have children or pets -- particularly cats -- you know how much they like to touch or climb on your things, particularly your PC. The other day while I was writing an article, my five year old was sitting next to me, watching Sesame Street videos and, as is her habit, waving her feet around. 

All of a sudden, I saw my computer had the "shutting down" text on the screen and, within a few seconds, the power was off and the article I was writing in our CMS (and hadn't saved yet) was gone. My daughter had accidentally kicked the power button on my desktop, which sits under my desk. 

This isn't the first time my daughter has accidentally turned off my computer while I was doing work. Another time, she pressed the button on purpose, thinking it would change the RGB light colors on the fans. And many years ago when I had cats, one of my cats hit my desktop's power button with his paw, coincidentally while I was writing about him.

If you have a Windows desktop or even a laptop, it's very easy for kids or pets to touch that power button, initiate a shutdown and cause data loss. You might even do it to yourself if you brush against it with your own finger or toe. 

On some systems, particularly laptops, it's possible the power button will be configured to put your computer to sleep, which will waste your time as you wake the computer up again but won't cost you work. But, on my desktop -- where I had done a clean install of Windows 11 Pro just a couple of weeks ago -- shutdown on power button press was the default setting. 

Fortunately, it's easy to change what the power button does in Windows 11 or 10 and set it to "do nothing." So when your child or cat presses the button, absolutely nothing will happen. If your computer completely locks up and you can't shut down via Windows, you can still hold down the button for several seconds to cut the power.

How to Disable the Power Button in Windows 11 or 10

1. Navigate to the control panel. The easiest way to get there is to search for control panel in Windows search and click the top result. 

search for control panel

(Image credit: Future)

2. Click Power Options.

click power options

(Image credit: Future)

3. Click Choose what the power buttons do.

choose what the power buttons do

(Image credit: Future)

4. Set when I press the power button to "Do nothing."

Set when I press the power button to Do nothing

(Image credit: Future)

5. Click Save changes.

save changes

(Image credit: Future)

Now, when anyone presses the power button, it will do nothing. If you need to shut down and Windows is frozen, you can hold down the button for a few seconds and the computer will power off. Or you could flip the power switch on the back of the power supply (on a desktop).

Avram Piltch
Avram Piltch is Tom's Hardware's editor-in-chief. When he's not playing with the latest gadgets at work or putting on VR helmets at trade shows, you'll find him rooting his phone, taking apart his PC or coding plugins. With his technical knowledge and passion for testing, Avram developed many real-world benchmarks, including our laptop battery test.
  • das_stig
    Here's another, change the power button to do nothing when it detects a TH reporter attempting to power on, to write an alleged news piece :tonguewink:
    Reply
  • pixelpusher220
    My parents had the same issue with heated car seats when traveling with their cats.

    Just tape a bottle cap over the button.
    Reply
  • Alvar "Miles" Udell
    Something else you should do is turn off Fast Startup, an option which shouldn't exist in the age of NVMe SSDs.
    Reply
  • ravewulf
    I have a Phanteks Evolv X and the power button is unfortunately on the top where I sometimes like to rest my feet (it sits under my desk). Many accidental shutdowns were had before I changed it so the button would do nothing. I'd much prefer a case with a power button on the front or behind the flip-up door that hides the front I/O but I like everything else about the case, soooo...
    Reply
  • AkroZ
    For me disabling shutdown was not enough. My brother inadvertendly press the button with his feets and the power button remain pressed causing a forced power shutdown (It taked me some times to understand the cause).
    Thumbtacks with straps around the button was the solution, it was a little painful for him to learn at the beginning.
    Reply
  • Colif
    if you have cats, keep them away from your keyboard as 4 paws can press combos you didn't know existed, and figuring out how to get back to normal can take time. Clean install probably faster.

    Talk about sky is falling articles...
    Reply
  • guraldunix
    This is probably the toughest to change, but you guys should really move to a CMS that auto-saves as you type.

    There's no reason to use an enterprise application that doesn't have a fully functioning auto-save feature in this day and age.
    Reply