Castanet Communications banner image
 
 

 
Clear the Page File at System Shutdown
Author: Craig "hachiroku" Mercer
Date Created:2002-11-23
Operating System(s):Windows Logo imageWindows NT/2000/XP

Windows does not normally clear or recreate the page file. On a heavily used system this can be both a security threat and performance drop. Enabling this setting will cause Windows to clear the page file whenever the system is shutdown.

Open your registry and find or create the key below.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

Create a new DWORD value, or modify the existing value, called "ClearPageFileAtShutdown" and set it according to the value data below.

Exit your registry, you may need to restart or log out of Windows for the change to take effect.

The Usual Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. Use the information provided at your own risk.