iSumsoft » Resources »Windows 10»2 Ways to Enable Clear Virtual Memory Pagefile at Shutdown

How to Clear Virtual Memory Pagefile at Shutdown in Windows 10

This article describes 2 methods to clear the Windows paging file during the shutdown process, this will prevent file pages from storing unsecured data when the shutdown process is complete.

Note: If you enable this feature, shutdown and restart will take a bit longer to finish.

Method 1: Enable clear virtual memory pagefile

Step 1: Open Local Security Policy.

Press Win+R keys to open the Run dialog, type secpol.msc in the field and click OK.

Open Local Security Policy

Step 2: Click to expand open Local Policies and Security Options in the left pane of Local Security Policy. In the right pane, click on Shutdown: Clear virtual memory pagefile policy to open its properties.

Shutdow: Clear virtual memory pagefile

Step 3: Select Enable option, then click on Apply to make this change take effect.

Enable clear virtual memory pagefile at shutdown

Method 2: Enable clear Windows pagefile in Registry Editor

Step 1: Open Registry Editor.

Type Regedt32.exe into the Search box and then hit Enter key.

Open registry editor

Step 2: In the left side of Registry Editor, navigate to the following path:

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

In the right pane, click on ClearPageFileAtShutdown to modify its value.

Click on clear pagefile at shutdown

Step 3: Change its value date to 1. Then, click OK.

Enable clear pagefile at shutdown

When done, close Registry Editor.