Problem solve Get help with specific problems with your technologies, process and projects.

Why should I clear the contents of the swap file on a shutdown?

I was reading your definition of a "swap file" and the fact that it uses virtual (disc) memory to move the contents...

of physical memory to the virtual memory.

I have a system I am working with that is a proprietary NT-4 system and one of its security related settings allows you to "clear the swap file on shutdown". Any ideas why I would want to clear the contents of the swap file on a shutdown (from a security perspective)?
Many people who are highly security-conscious would want the swapfile to be cleared at shutdown to prevent someone from obtaining the file and analyzing it for possible sensitive information. This doesn't just include passwords stored in plaintext, but pieces of documents or other human-readable data could be found there and exploited. On systems where security isn't that big a consideration, this option has little benefit and it slows down the shutdown process enormously.

This was last published in September 2004

Dig Deeper on Windows File Management

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.