9 replies
by bfilmfan
It is a registry key entry. No script required.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown = 1
by cyberoptiq
by multiplexed
For XP Pro there's also a security policy that clears the pagefile on shutdown. It probably just changes the registry key mentioned earlier (which would work on both XP Pro & Home), but using the security policy makes it easy to deploy through group policy if needed. Or it makes it easy to copy and import templates to other machines.
"Shutdown: Clear virtual memory pagefile" = enabled
Wiping out any or all of the paged code and data for your loaded software would probably cause your current session to expire!
Why do you want to do it?
by cyberoptiq
by 3dcad
by cyberoptiq
by 3dcad
My questions were just that; legitimate questions as to why this process would be feasible. I was genuinely interested in what could be accomplished by such a task, but now, I'll just tell you how it can be done.
There is no easy way I know of as far as any script or code, but if you export the registry key mentioned earlier, you'll have your "switch". Export it the first time, while the value is set to 1,and save it as "On.reg", then change the value to 0 and export it as "Off.reg". Double-click the proper file to update the registry. The downside to this is that you'll have to remember to update the registry by double-clicking the on.reg after you restart, otherwise, another slow boot process. I would be cautious myself, because I would probably accidentally click the wrong one at the wrong time, but that's just me.
by kcmplex
This discussion is closed to new replies.
Trending IT Employment posts
Sort by Trending