Quantcast
Channel: Tech Support Guy - Windows 7
Viewing all articles
Browse latest Browse all 6058

Search for, and Delete hiberfil.sys files using batch script.

$
0
0
Hi guys,
I found out recently that the "Hibernate" feature on windows could potentially compromise truecrypt keys, and certain content from an encrypted drive or encrypted virtual partition.

When I found out, I sought to remove the "hibernate" feature from my computer, and remove the "Hiberfil.sys" file that could be potentially holding sensitive information.

Now, you're probably thinking "why would you want a batch script to do that? Its located on C: (windows partition drive), just go there, and delete it!"...
The problem with that, is the fact that I have had windows on multiple drives, of which I have not re-formatted yet, and also have windows XP installed on the same partition as my windows 7 OS.

So basically, I just want to make a batch file, that will work with windows 7, to search for "hiberfil.sys" through a hard drive (I'll just copy the batch file to each partition's root and run it on each partition separately), then delete the file or files if there are multiples of them.

The search will need to include "hidden" attributes, and perhaps include "system" files, and "read only" files in the search too, but not limit the search to those attributes (also include files with no special attributes attached).


I just want to do a good, clean purge of any hiberfil files on any partition.
Anyone able to help me out with this?

Viewing all articles
Browse latest Browse all 6058

Trending Articles