Tip

Protecting temporary and system files

 

Protecting temporary and system files
Tom Lancaster

During the course of normal operation, Windows and the various applications that run on it are continuously opening and closing temporary files and using memory swap space (the paging file). Windows and these applications often leave important information such as your user data or usernames and passwords in these files, so they need to be protected. When Windows crashes, by default it dumps anything in memory (which can also contain sensitive data) to a "dump file," which is stored on the hard drive in case you need Microsoft to debug your problem. This too needs to be addressed.

In a previous tip, we suggested encrypting the temp folder on Windows 2000 systems, which provides a little protection to the files created by the OS and applications, but only in this one folder. To protect the dump file and paging file, we just need to clean them up. We'll start by completely disabling Windows' ability to create the dump file. You'll probably never use it, and if you do need it, you can always turn it back on, use it, then turn it back off and delete the file.

To disable the dump file, go to the Control Panel and double-click System. Select the advanced tab and click Startup and Recovery. Change the options for 'Write Debugging Information" to None. (You'll need to reboot your system after you make these changes.)

You can't really disable the paging file

    Requires Free Membership to View

because your OS and applications need it to function, even if that means they are storing your private information. So to protect the paging file, the best thing to do is simply clear it every time you shut down the computer. This can be accomplished by using the Registry Editor. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management. Inside, you will find a value named ClearPageFileAtShutdown. Change this to a 1.

IMPORTANT: Editing your system's registry is very dangerous. As always, before making changes, be sure to back up your data in the registry, and be sure you know how to restore, in case you mess up.


Thomas Alexander Lancaster IV is a consultant and author with over ten years experience in the networking industry, focused on Internet infrastructure.


This was first published in March 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.