Question PageFile location always revert to default

Jan 13, 2022
62
2
35
So, I changed my pagefile.sys location from C (System) to F.. and no problem at all.

But in last month, why it always reset/revert back to C after booting windows? I need to restart my PC to make it back to drive F.

If i shutdown my pc, it will back to C again in next boot...

It happen in both my desktop and laptop. I have updated my windows and still same problem.

Is there any way to make pagefile always 100% stored in F just like my setting?

NOTE: I've already know that it's better to store pagefile in default system location, but for some reason, I need to store it in drive F.
 
maybe look at the registry keys before and after you reboot
I think it is here:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

after you find the modified key then you would run a registry monitor tool to find out what process modified the key.
maybe a tool like: Viewing the list of Registry keys modified in the last hours/days (nirsoft.net)

you might run cmd.exe as an admin and run
(maybe the system is making a temp pagefile.sys for some reason


C:\WINDOWS\system32>wmic pagefile list /format:list


AllocatedBaseSize=1280
CurrentUsage=0
Description=C:\pagefile.sys
InstallDate=20160520131247.145405-420
Name=C:\pagefile.sys
PeakUsage=0
Status=
TempPageFile=FALSE
 
Last edited: