Clearing the Pagefile at Shutdown
If your run-time image includes pagefile support, you can help protect potentially sensitive data by clearing out the pagefile before the system shuts down.
To clear the pagefile at shutdown
- You can customize a Microsoft Management Console (MMC) security template to clear the pagefile on shutdown. For more information about creating a custom security template, see Creating a Component for the Custom Security Template.
- or -
You can edit the registry of your run-time image to clear the pagefile at shutdown. Add or edit the following registry key:
Key Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Value Name: ClearPageFileAtShutdown
Type: REG_DWORD
Value: 1
For more information about adding registry data to a configuration in Target Designer, see Adding Registry Data to a Configuration in Windows XP Embedded Studio Help.
For more information about adding registry data to a component in Component Designer, see Component Registry Data in Windows XP Embedded Studio Help.
See Also
Best Practices for Security | Network Security Considerations | Local Security Considerations
Last updated on Wednesday, October 18, 2006
© 2006 Microsoft Corporation. All rights reserved.