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

  • How to use Clean Master to clean up, speed up WindowsHow to use Clean Master to clean up, speed up Windows
    clean master has a version on windows pc with features to clean up the system, speed up the computer similar to ccleaner.
  • Instructions for scheduling a Windows 10 computer shutdownInstructions for scheduling a Windows 10 computer shutdown
    turning off your windows computer simply means you work with the power key. however, if you are in the habit of working late at night and often forget to turn off your computer, you can set the automatic shutdown schedule at a specific time in advance.
  • How to implement Clean Boot on Windows 10/8/7How to implement Clean Boot on Windows 10/8/7
    clean boot state is used to diagnose and fix problems on windows. if your computer cannot start normally or if during the boot process you receive an error message, then you might consider performing a clean boot.
  • CleanMyPC - the tool that takes care of all PC maintenance tasksCleanMyPC - the tool that takes care of all PC maintenance tasks
    every windows user knows that this operating system will accumulate garbage over time. windows has a number of tools for maintaining computers, but they don't offer as many features as professional tools. cleanmypc is an application that provides features for computer maintenance, helping to operate better.
  • Clean junk computer Windows 10, Windows 7 most effectivelyClean junk computer Windows 10, Windows 7 most effectively
    clean junk computer windows 10, windows 7 most effectively. in the process of using a computer, the generated junk file is inevitable because there are many causes that can cause this. junk files accumulate for a long time will make our computer
  • Automatically 'clean up' the Recycle Bin on Windows 10Automatically 'clean up' the Recycle Bin on Windows 10
    recycle bin is a place to store temporary files and folders that you accidentally deleted. however, to clean up unnecessary files, you will have to do one more step to clean up the recycle bin. instead of losing a lot of steps, you can set up to automatically clean up the recycle bin every time you open your windows 10 computer.
  • How to turn off Windows 10 computer without waiting for the update to installHow to turn off Windows 10 computer without waiting for the update to install
    windows 10 often requires updates when the computer is turned off. thus users have to wait a long time to complete the update to turn off the computer.
  • How to Wipe Clean a Computer and Start OverHow to Wipe Clean a Computer and Start Over
    if your computer is getting sluggish, it may be time for a clean start. regularly wiping and reinstalling your operating system can keep your computer running smoothly for much longer than you would expect. this will clear out junk files...
  • How to automatically turn on the computer on WindowsHow to automatically turn on the computer on Windows
    today's article will show you how to make your pc start automatically at a specific time. if you are using a windows-based pc, you can schedule automatic booting in the system bios.
  • 7 simple steps to make your laptop as clean as new7 simple steps to make your laptop as clean as new
    here are 7 basic steps you need to take when cleaning your laptop. you should check the manufacturer's user manual for more details on how to disassemble specific parts on a laptop.