As an added security precaution it is possible to clear all data that has been written to the page file so it cannot be retrieved. The downside to this tweak is that it may substantially increase shutdown time depending on the amount of data in the page file.
To resolve this problem, you must make the following changes to the Windows registry.
CAUTION: We strongly recommend that you back up the registry before you make any changes to it. Incorrect changes to the registry can result in permanent data loss or corrupted files. Modify only the keys that are specified. Read the document
How to make a backup of the Windows registry for instructions.
Click on
START > RUN and type
regedit
Then click on
Ok button.
The
Registry Editor, will be appeared.
In the left pane of the
Registry Editor, navigate to the following subkey (making double click on each registry key):
HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Control
Session Manager
Memory Management
Now, in the right pane of the
Registry Editor locate and make double click on the following registry subkey named
ClearPageFileAtShutdown
If not, make it. In this case, in the right pane of the
Registry Editor, right click in the white space and choose
NEW > DWORD Value to create a new subkey.
Name it
ClearPageFileAtShutdown
Now, make double click on it.
A new window will be appeared.
Modify the value in the field named
Value data (by default is
0 (read ZERO)).
Set the value data for this subkey to:
0 (read ZERO) Clear Page File Disabled;
1 (read ONE) Clear Page File Enabled.
Then click on
Ok button.
Exit the Registry Editor.
Restart the computer.