Another way to set the computer to clear the pagefile without directly editing the registry is:Click on the Start buttonGo to the Control PanelAdministrative ToolsLocal Security PolicyLocal PoliciesClick on Security OptionsRight hand menu - right click on "Shutdown: Clear Virtual Memory Pagefile"
Select "Enable"RebootIf you want to clear the page file on each shutdown:Start Regedit
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdownSet the value to 1
Select "Enable"
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown