Deleting pagefile.sys on shutdown
- by Daniel E. Shub
I have a Windows XP machine (it is a VM running in Xen) that I would like to backup. I have enabled ClearPageFileAtShutdown by following MS KB 314834. If I cleanly shutdown the XP machine and then mount the drive in another machine (which is trivial since the machine is virtual) I still have a large pagefile.sys. I was hoping that enabling ClearPageFileAtShutdown would result in a pagefile.sys with a size near zero.
I have two questions.
First, is it possible to have pagefile.sys be deleted, or have a drastic size reduction, at shutdown?
Second, can I exclude pagefile.sys from my backup?