Delete pagefile.sys when Windows shuts down
Posted byJul 22
The pagefile.sys file is the Virtual Memory file used by your Windows computer. If you have limited RAM, your windows machine to run programs and store data. It swaps out some of the RAM data to the page file and then reuses the freed up RAM.
You can improve the security of a computer running Windows if you delete pagefile.sys everytime you shut down your Windows machine.
How to do this?
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Add the following registry keys:
Value Name: ClearPageFileAtShutdown
Value Type: REG_DWORD
Value: 1
You need to restart your computer for the changes to take effect.
Popularity: 10% [?]
| 2.5 |




































I got 4gb RAM on Win XP x64. Do I need to do this?
Nope, you don’t really have to do this if your PC has more than 1GB of RAM.
I actually disabled paging in my PC, but when I run Adobe Photoshop, it requires it.
Nice tip!
Benson, I’m glad that this little tweak was able to help you.
LiNTEK!
Thanks for this nice tip….
LiNTEK,
I guess removing pagefile.sys for every shutdown will slow down the boot process next time. Am i right? let me know.
Nihar,
Yes it will, however, it is very tolerable.
LiNTEK