This article describes steps to enable or disable the Virtual Memory Paging File Encryption feature in Windows 11.
In Windows, paging, page file, and virtual memory refer to the exact Windows feature. Windows uses it to remove infrequently accessed modified data from physical memory to let the system use physical memory more efficiently for more frequently accessed data.
Windows also use the page file to store data when physical memory (RAM) is complete.
By default, this location is not encrypted. Encrypting the page file prevents malicious users from reading data paged to disk but also adds processing overhead for filesystem operations.
Below is how to enable or disable encrypting virtual memory paging files in Windows 11.
How to encrypt or decrypt virtual memory paging file encryption in Windows 11
As mentioned above, encrypting the page file prevents malicious users from reading data paged to disk and adds processing overhead for filesystem operations.
Below is how to encrypt or decrypt virtual memory paging files in Windows 11.
Enable or disable Virtual Memory Paging File Encryption using Command Prompt
One can use the Command Prompt or Windows Terminal to encrypt or decrypt the virtual memory paging file in Windows.
First, open Windows Terminal as administrator. Then use either the Command Prompt or Windows Powershell.
Run the commands below to see if encryption is enabled or disabled
fsutil behavior query encryptpagingfile
You will see similar output as the one below, indicating the paging file encryption is disabled.
EncryptPagingFile = 0 (PageFile encryption is DISABLED)
Now that you know the virtual memory paging file is disabled, run the commands below to enable it.
fsutil behavior set encryptpagingfile 1
To disable the virtual memory paging file, run the commands below.
fsutil behavior set encryptpagingfile 0
Restart your computer for the changes to apply.
Enable or disable virtual memory paging file encryption using the local group policy editor
If you can run the commands above to enable or disable this feature, you can use the Local Group Policy Editor.
First, open the Local Group Policy Editor.
Then navigate to the path below.
Computer Configuration > Administrative Templates > System > Filesystem > NTFS
In the NTFS details pane on the right, locate and double-click the setting that says “Enable NTFS pagefile encryption. “
On the Enable NTFS pagefile encryption window set the option to Not Configure, Enabled, or Disabled.
- Not Configured (default)
- Enabled – Enable NTFS pagefile encryption.
- Disabled – Disable NTFS pagefile encryption.
Choose your settings and close.
Enable or disable pagefile encryption via Windows Registry
If you can’t open the Local Group Policy Editor, you can use the Windows Registry instead.
Open the Windows Registry, and navigate to the folder key path as listed below.
On the FileSystem key right pane, double-click the NtfsEncryptPagingFile value name as highlighted below.
Type 1 to enable and 0 to disable virtual memory page file encryption.
Restart your computer to apply.
This post showed you how to enable or disable virtual memory page file encryption in Windows 11. Please use the comment form below if you find any errors above or have something to add.