Windows hibernation is controlled with the powercfg command. Turning it off frees the disk space used by hiberfil.sys; turning it on restores hibernate and hybrid sleep. Both commands need an elevated (Run as administrator) Command Prompt.
Enable Hibernate
This restores the hiberfil.sys file and brings back the “Allow hybrid sleep” and “Hibernate after” settings under Sleep in Power Options.
- Open an elevated Command Prompt.
- Type the command below and press Enter.
- Close the Command Prompt.
powercfg -h on
Disable Hibernate
This turns off hibernation, deletes hiberfil.sys, and removes the “Allow hybrid sleep” and “Hibernate after” settings. On Windows 8 and later it also disables Fast Startup.
- Open an elevated Command Prompt.
- Type the command below and press Enter.
- Close the Command Prompt.
powercfg -h off
