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: Pagefile & Hibersys Security Deletion

29 Apr 2010   #1
James Colbert

Pagefile & Hibersys Security Deletion

For security purposes, I would like to rebuild the pagefile and hibersys files. I tried deleting them from within windows, but they are in use and will not allow deletion. How does one safely delete these mode?

The above is based on the assumption that villians could extract sensitive data from these files. Is this a correct assumption?


My System SpecsSystem Spec
29 Apr 2010   #2

Windows 7 Ultimate 32 bit

You can delete them by turning off pagefile and hibernation and rebooting. However, does a normal shutdown empty the pagefile and the hibernation file? I don't know the answer to this.
My System SpecsSystem Spec
29 Apr 2010   #3

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86

To delete hiberfil.sys, just disable hibernation. Run CMD as admin, then at the command prompt, type “powercfg.exe -h off” without quotes, hit Enter, close the window.

To re-enable hibernation, use the command "powercfg.exe -h on" in an elevated command prompt.

To clear pagefile at shutdown, see this tutorial. It should work equally well for win7. It also addresses your security concerns.

Virtual Memory Paging File - Clear at Shutdown - Vista Forums
My System SpecsSystem Spec

29 Apr 2010   #4
James Colbert


Thanks Bill2 and Carl, and thanks for the link. I'll downlaod the file and enable when necessary.

Thanks again,
My System SpecsSystem Spec

 Pagefile & Hibersys Security Deletion

Thread Tools

Similar help and support threads
Thread Forum
How do I customize Win7 pagefile to work like WinXP pagefile?
Hi, Sorry if someone had asked this before, but I'm looking for a very specific answer. There are many threads of people asking about Win7 pagefile, but none talked about exactly what I'm trying to do. In WinXP, I like to set my pagefile to the minimum size and then let it grow when needed....
Performance & Maintenance
Moved Pagefile.sys to second HHD and old pagefile.sys still on primary
Hello all, I have a SSD which runs my windows 7 and other processing heavy programs and a secondary HDD which holds files. I've been reading up on making sure I can get the most life out of my SSD since there are limited read/write cycles on them. Therefore, I looked into moving my...
Performance & Maintenance
Deletion Leftovers
I have noticed that when I want to do a clean install of an application, after the install my settings are back in my application. How can I completely uninstall an app. or for that matter anything from my computer? Thanks.
General Discussion
Downloads Deletion
Very Noob querie. After downloading programs and instalation to hd can i safely delete all download apps from download folder . Many thanks.
Deletion of Old OS (Vista)
I have two OS' (Windows 7/Windows Vista) on two separate hard disks in a dual-boot configuration. What I want to do is delete Vista to free up some storage space. However when I tried this before (I deleted the partition on the Vista hard disk), Windows 7 (on the other hard disk))did not boot. I...
Installation & Setup

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 15:24.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App