Skip navigation

JSI Tip 0303 - How do I clear the page file at shutdown?

For security reasons, you may want to clear the pagefile.sys when you shutdown the system. Edit:

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

Add Value name ClearPageFileAtShutdown as type REG_DWORD. The default is 0. When you set it to 1, inactive pages in the pagefile.sys will be filled with zeros. Some pages can not be cleared as they are active during shutdown.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish