Enable virtual memory file encryption

NTFS Pagefile encryption

By encrypting the paging file, we prevent malware or malicious users from reading sensitive information from the paging file (pagefile).

This setting increases security, but also has some impact on performance.

Activated via the registry:

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ File System]
"NtfsEncryptPagingFile" = dword: 00000001

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Policies]
"NtfsEncryptPagingFile" = -

CMD: fsutil behavior query encryptpagingfile 1

Deleting the virtual memory paging file at shutdown