Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Remove the Hibernation file - hiberfil.sys

24 Sep 2012   #1
DarkStar GT

Windows Home Premium (64)
 
 
Remove the Hibernation file - hiberfil.sys

My hiberfil.sys file is 6GB and I do not use hibernation.

Looking at my Advanced Power Settings (they have been set like this since I got the system):
-- Sleep after is "Never|"
-- Allow hybrid sleep is "Off"
-- Hibernate after is "Never".

And "Hibernate" appears in my Shutdown menu.

But I cannot rename / delete hiberfil.sys. Another program has opened it (it was last accessed when I booted the system).

What do I need to do to remove hiberfil.sys safely?

(I did a Search but did not get to a conclusive answer.)


My System SpecsSystem Spec
.
24 Sep 2012   #2
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

In an elevated command prompt, type powercfg -h off and press Enter.

Hibernate - Enable or Disable
My System SpecsSystem Spec
26 Sep 2012   #3
DarkStar GT

Windows Home Premium (64)
 
 

Thank you. I was going to try that but my Settings are already as described in Option 4 and I did not think that "powercfg ..>" would do anything more. Does it also delete the file?.

I was wondering, given my Settings, why the file is there on disk, opened by something. Should it have been deleted already?
My System SpecsSystem Spec
.

26 Sep 2012   #4
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Yes, the powercfg -h off command will delete the hiberfil.sys file.

That is explained in the tutorial
Hibernate - Enable or Disable
My System SpecsSystem Spec
26 Sep 2012   #5
DarkStar GT

Windows Home Premium (64)
 
 

OK, thank you. But using "Option 4" does not delete the file. Perhaps an additional step to delete the file manually could be added.
My System SpecsSystem Spec
26 Sep 2012   #6
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

The powercfg command is the correct and only way to create or delete this file safely.

If you find some other manual way to do this, you are asking for trouble.
My System SpecsSystem Spec
29 Jan 2016   #7
fantazma

windows 7 64bit
 
 

To delete hiberfil.sys, first open command prompt with administrator right by right clicking on the command prompt from the start menu and Run as Administrator. Type the following command :
powercfg -h off

More information on delete hiberfile.sys.
My System SpecsSystem Spec
Reply

 Remove the Hibernation file - hiberfil.sys




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Any way to make Windows 7 load from Hibernation file?
Hi, Yesterday I loaded my computer from hibernation, switched to the login screen when I had to leave my computer for a minute, and then came back and accidently restarted the computer after I signed in. I'm not sure when the hibernate file is deleted or overwritten, but I would not allow...
General Discussion
BSOD, Corrupt Hibernation File, and buggy Sleep.
Hi, I'm new to the forum but was wondering if I could get some help with my computer crashing randomly. I have included the dump file. Thanks in advance if anyone is able to help. :) It was working fine a while back but has recently been having issues like it not being able to come back out...
BSOD Help and Support
Hibernate - Change Size of hiberfil.sys File
How to Change the Size of the hiberfil.sys File in Windows By default, the size of the hiberfil.sys file is 75% of the total amount of installed RAM (memory) when hibernate is enabled in Vista, Windows 7, and Windows 8. This tutorial will show you how to change the size of the hiberfil.sys...
Tutorials
SSD and Hibernation File Location
I have a Quad system running W7 Home Premium that is OverClocked and will not work with the Sleep function but works just fine with Hibernation. Now that SSD drives are becoming more affordable has anyone come up with a way to move the Hibernation file to a different physical drive. Based on the...
Performance & Maintenance
Remove "Hibernation is not enabled" message?
Hey all - I've intentionally disabled hibernation and Windows 7 constantly wants to remind me that I've done so. On startup, the message "Hibernation is not enabled" appears as a balloon on the taskbar. Is there any way to make this not show up? I've disabled all of the icons/notifications but...
General Discussion
Article - Adapt the Windows 7 Hibernation File...
Source
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:18.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App