How to really turn off hibernation in Windows 7

I've tried everything I can think off to turn off hibernation.

I have disabled it in power management, used powercfg -h off and it almost works. It works when I execute the command, but when I reboot the file hiberfil.sys is created again.

How do I do to turn off hibernation and delete the hiberfil.sys file forever?


You could also try to turn off Hybrid Sleep :

  1. At the command prompt run as administrator, type powercfg.exe /hibernate off
  2. Start menu > type Power options
  3. In the left pane, open the link labeled Change when the computer sleeps and then open the link Change advanced power settings.
  4. Under the Advanced Sleep options, expand the Sleep tree and turn off Hybrid Sleep.
  5. Press OK.
  6. Reboot.

image


I don't know if it matters but I always turn it off with the following command:

powercfg -h off

as opposed to:

powercfg /h off

I asked the question at and got the answer here: Microsoft Answers. So here is how you really find what is turning your hibernation back on again using clean boot.

1. Start msconfig.exe
2. On the general tab select "Selective startup" and uncheck "Load startup items".
3. On the services tab unselect all first. 
4. Runt the command "powercfg -h off" to turn off hibernation.
5. Reboot
6. If hibernation is still deactivated start msconfig.exe again and activate half of the services.
7. Repeat 5 and 6 until you find the service causing hibernation to be turned back on (don't forget to do step 4 if it is activated again).

Something is turning it back on.

Try running Autoruns to see what is running automatically when you boot.
Is there a program or a scheduled task that does this?

If you don't see anything, run Process Monitor and enable boot logging (remove the filters to avoid filtering out the calls), then look for "hiber" and see/post what you find.


the easiest way is Microsoft tool to enable hibernate.and Microsoft tool to disable hibernate.you do not have to write any commands.just follow this link please. Enable and Disable hibernate tools

Enable and Disable hibernate tools

Update to the previous answer:
 To make hibernation unavailable, follow these steps:
  * Click Start, and then type cmd in the Start Search box.
  * In the search results list, right-click Command Prompt, and then click Run as Administrator.
  * When you are prompted by User Account Control, click Continue.
  * At the command prompt, type powercfg.exe /hibernate off, and then press Enter.
  * Type exit, and then press Enter to close the Command Prompt window.

To make hibernation available, follow these steps:
 * Click Start, and then type cmd in the Start Search box.
 * In the search results list, right-click Command Prompt, and then click Run as Administrator.
 * When you are prompted by User Account Control, click Continue.
 * At the command prompt, type powercfg.exe /hibernate on, and then press Enter.
  * Type exit, and then press Enter to close the Command Prompt window.