Clear Page File At Reboot or Shutdown

   Posted August 3, 2003 by David Kirk in Windows security

This tech-recipe tells Microsoft Windows to clear the page file during reboot or shutdown. This article works for XP, Vista, and Windows 7.


The Windows page file contains the system’s virtual memory. Therefore, it could contain sensitive information including passwords. Many security experts suggest having windows clear the page file during shutdown.

This involves editing your registry. One should always export your current registry to backup and save it before editing.

Make this simple change:
Hive: HKEY_LOCAL_MACHINE
Path: SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Key: ClearPageFileAtShutdown
Type: REG_SZ
Value: 1

 

About David Kirk

David Kirk is one of the original founders of tech-recipes and is currently serving as editor-in-chief. Not only has he been crafting tutorials for over ten years, but in his other life he also enjoys taking care of critically ill patients as an ICU physician.
View more articles by David Kirk

The Conversation

Follow the reactions below and share your own thoughts.