Clean up traces of Pagefile every time you turn off your Windows 10 computer

Pagefile is one of the oldest and most important features on Windows operating systems. This feature acts as a virtual memory on your system. Whenever the memory capacity on the computer is 'alert', Windows moves the least used memory pages to a hidden file called pagefile. By default, the pagefile is automatically created and maintained by Windows.

This allows Windows to run programs without crashing errors due to low memory capacity. Even if the amount of memory is large, Windows still uses the pagefile for caching when moving or deleting a large number of files and other activities.

And as you know, whenever you turn off your computer, system or assume if you lose power, the contents on memory (RAM) will automatically be 'lost'. But the content on the pagefile is still there, unless Windows removes them. So other users can still 'detect' the pagefile data. If you don't want this to happen, you can force Windows to automatically delete the pagefile every time you turn off Windows.

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 1

How to clean up Pagefile traces on a Windows 10 computer?

Also, if you want to know the details about pagefile, you can refer here.

1. Use Windows Group Policy Editor

If you use Windows Pro or Enterprise versions, you can use Group Policy Editor to wipe traces of the pagefile automatically. To do this thing:

First enter gpedit.msc in the Search box on the Start Menu and press Enter to open the Group Policy Editor window.

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 2

On the Group Policy Editor window, navigate to the key:

Computer Configuration => Windows Settings => Security Settings => Local Policies => Security Options

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 3

In the right pane, find and double-click the policy named 'Shutdown: Clear virtual memory page file' .

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 4

On the Policy settings window, click the Enabled button then click OK to save the changes.

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 5

Finally, restart the system to apply the changes.

In case if you want to go back to the original settings, you do the same steps and set the policy 'Shutdown: Clear virtual memory page file' to Disabled.

2. Use the Windows Registry Editor

If you are using the Windows Home version, you will need to rely on the Windows Registry support to delete the pagefile. To do this thing:

First enter regedit in the Search box on the Start Menu and press Enter to open the Windows Registry Editor window.

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 6

On the Windows registry editor window, navigate to the key:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 7

Here you will have to proceed to create a new value. To do this, right-click any space in the right pane, then select New => DWORD (32-bit) Value .

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 8

Name this new value ClearPageFileAtShutdown and then press Enter.

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 9

Once created, double click on the ClearPageFileAtShutdown value to open the Properties window. There you enter 1 into Value Data frame and then click OK to save the changes.

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 10

Once completed, you will see the change as shown below.

Clean up traces of Pagefile every time you turn off your Windows 10 computer Picture 11

Finally proceed to restart your computer to apply changes. From now on when your computer is turned off, Windows will automatically wipe traces of the pagefile.

In case if you want to revert to the original setting, perform the same steps and change the value in Value data to 0 to complete.

Refer to some of the following articles:

  1. Summary of several ways to open virtual keyboard on Windows XP / 7/8 / 8.1 / 10
  1. Instructions for activating Keyboard Backlight on Windows 10
  1. Prevent Microsoft from collecting system information on Windows 10

Good luck!

5 ★ | 1 Vote

May be interested

  • Set up custom icons for portable hard drives on Windows 10Photo of Set up custom icons for portable hard drives on Windows 10
    if it feels tedious to see the same icons every time you connect mobile devices and hard drives on your computer, and you want to replace the old icons with vivid icons, more fun. you can then set up custom icons that you want for your device or a portable hard drive to connect to your computer.
  • 2 ways to back up Product Key on Windows 10, 8 and 8.1Photo of 2 ways to back up Product Key on Windows 10, 8 and 8.1
    when your windows operating system has some critical errors or crashes, ... often the solution to fix the error is to reinstall the operating system. and windows users will have to use product key to reinstall the operating system. however, to 'buy' a product key you will need to pay a decent fee.
  • 14 free and useful applications for Windows should be installedPhoto of 14 free and useful applications for Windows should be installed
    14 most popular and useful applications you should install on your window.
  • Adjust screen resolution on Windows 10/8/7Photo of Adjust screen resolution on Windows 10/8/7
    on windows 7 and windows 8, screen resolution management can be said to be quite simple. by default on windows 10/8/7, you can choose to display display resolution, refresh rate (screen refresh rate) and color according to your screen.
  • Add Command Prompt to Power User Menu on Windows 10Photo of Add Command Prompt to Power User Menu on Windows 10
    on windows 10 build 14971, microsoft replaced command prompt and command prompt (admin) with windows powershell. according to microsoft, this change will bring the best command line experience to users. but in fact, users prefer to use command prompt rather than using powershell.
  • Activate to open the settings page (Share page) hidden on the Windows 10 Settings applicationPhoto of Activate to open the settings page (Share page) hidden on the Windows 10 Settings application
    on windows 10 with integrated features share page. however for some reason this feature is hidden in the settings app. if you want to customize flyout when you click on the share button on microsoft edge, windows store application or file explorer, you can enable the hide page feature on the windows settings application. to do this, please refer to the following article of network administrator.