Having a kid myself, I know how frustrating it can be when a little one walks up to the computer and presses the power button while you’re in the middle of your work. This simple walkthrough will show you how to disable the shutdown signal on the power button press. NOTE: Your computer will still shut off if the power button is held for 4 seconds. This cannot be changed, but this walkthrough will restore a good deal of your sanity.
Click Start > Control Panel
Look for and select Power Options
On the left side, look for and select Choose what the power buttons do.
Locate Power Button and change the settings to your liking.
That’s it! Changes take effect immediately.