I was wondering if anybody knows why my windows PC shuts down every time I press the power button. And no - I have it set to hibernate when I press the power button.
Can anybody help me?
Try the following procedure:
All Settings -> System -> Power and Sleep
Over on the right, find and select the "Additional Power Settings". This will open the old Control Panel in the "Power Options" page.
Over on the left, find and select the "Choose what the power buttons do"
Change the setting(s) that give you the desired behavior - there are both battery and plugged in settings. Look at the settings for "When I press the power button" and it probably says "Hibernate" or "Shut Down". Change it as you need and try that.
It may require you to sign out/in or restart to really take effect.
Hope this is what you were looking for.
Hibernate actually includes the shutdown function. The computer saves the RAM to disk, then it literally turns off. It is intended for power saving, especially on laptops. But also works if you want to keep your memory and move the PC.
If you only want it to sleep when you press the power button, you have to set it to do Hybrid Sleep/Suspend, or only Sleep/Suspend. Hybrid sleep is where it saves RAM to disk (as in hibernate) but goes to sleep instead of shutting down, to allow recovery if power is lost, but wake up faster. Normal sleep doesn't save RAM to disk, and just goes to sleep.
In fact, on Windows 8 and newer, it Hibernates by default when you press Shut Down. It is called fast startup. It logs out, then saves the system files to an image on disk to make startup faster.