How to enable/disable Windows hibernate with a single command


Here is a one-line command to enable and disable hibernation in Windows 7, for all you command-line users. By default, hibernation should be enabled in Windows.

To Disable Hibernate

  • Open an elevated command prompt, ie. one with admin previlages (Start > cmd > right-click and “Run as administrator”).
  • In command prompt, key in powercfg -h off and hit Enter.
  • Close the elevated command prompt.

To enable Hibernate

To turn on hibernate again, just use on instead of off in the command that you type in at the command prompt.