How to Clear Pagefile at Shutdown in Windows 10

https://winaero.com/blog/clear-pagefile-shutdown-windows-10/
The pagefile is where virtual memory that the operating system is using is stored when the physical memory (RAM) is not enough to fit all the running apps and system demands. Windows 10 creates a special file pagefile.sys in the root of your system drive. Clearing the page file on shutdown can be important if the PC is being used by another person. Here is how to clear pagefile at shutdown automatically.

Here is How to Clear the Pagefile at Shutdown using Registry Editor:

  • STEP 1: At first, open the Registry Editor. To do so, just press Win+R keys, type regedit and press OK.
    windows-10-open-registry-editor
  • STEP 2: Then go to the following Registry key. If you don’t have it – just create it.
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
    windows-10-find-ClearPageFileAtShutdown-key
  • STEP 3: After that, create or modify a 32-bit DWORD value ClearPageFileAtShutdown.
    windows-10-change-key-ClearPageFileAtShutdown
  • STEP 4: At last, set it to 1 to clear the pagefile at shutdown.

Here is How to Clear the Pagefile at Shutdown using Local Security Policy:

  • STEP 1: At first, press Win+R keys, type gpedit.msc and press OK.
    windows-10-run-group-policy
  • STEP 2: Then Local Security Policy Editor will be opened. Go to Local Policies \ Security Options on the left pane.
    windows-10-find-security-options
  • STEP 3: At last, enable the policy option Shutdown: Clear virtual memory pagefile on the right pane as shown below.
    windows 10 set clear pagefile policy
  • Andrew Wise

    Andrew is just a guy who uses computers every day, and hates if troubles come into his life. He loves to sing also. But don't worry his voice never bother you, just text.