Disable Hibernate and Delete hiberfil.sys in Windows 7 or Vista

You’ll need to open an administrator mode command prompt by right-clicking on the command prompt in the start menu, and then choosing Run as Administrator. Once you’re there, type in the following command:

powercfg -h off

You should immediately notice that the Hibernate option is gone from the Shut down menu.You’ll also notice that the file is magically gone!For more about dealing with Hibernate like setting how long it takes to head into Hibernate mode, you can check out our article on How to Manage Hibernate Mode in Windows 7.Disabling Hibernate Mode in Windows XPIt’s a lot easier in Windows XP to get rid of Hibernate mode… in fact, we’ve already covered it before, but we’ll cover it again. Just head into Control Panel –> Power Options, and then find the Hibernate tab.

via What is hiberfil.sys and How Do I Delete It? – How-To Geek.