Why would Windows 10 resist its configuration to delete its pagefile on shutdown?
The configuration is:
- Windows 10 guest on an Ubuntu 22.04 host running VMware Workstation Player 16.2.4.
- The Windows 10 machine is configured to clear its pagefile on shutdown. This configuration is reflected in both Group Policy (at
Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > Shutdown: Clear virtual memory pagefile) and the Registry (atHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown).
Nevertheless, when I mount the VM's *.vmdk file (i.e., its virtual HDD) after the machine has shut down, C:\pagefile.sys still exists.
Also:
- This behavior persists through several warm boot cycles (i.e., restarting the machine, which leaves the hypervisor running) and cold boot cycles (i.e., fully powering off the machine and closing the hypervisor on the host, then restarting the hypervisor and then the VM).
- The pagefile's timestamp is consistent with the current VM session (when the VM is running) and the last VM session (when the VM is closed and its virtual HDD mounted for inspection). This tells me that the Windows machine is accessing the file with no difficulty.
I know that the customary solution for Windows configuration resistance is to persist with reboots indefinitely until the configuration is recognized but I would be grateful for any constructive suggestions about how to get Windows to observe its configuration in this instance.