How to Enable or Disable Paging File Encryption in Windows 11

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 and 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 to apply the changes.

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.

windows 11 edit group policy
windows 11 edit group policy

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. “

windows 11 enable ntfs page file encryption
Windows 11 enables NTFS page file encryption

On the Enable NTFS pagefile encryption window set the option to Not ConfigureEnabled, or Disabled.

  • Not Configured (default)
  • Enabled  – Enable NTFS pagefile encryption.
  • Disabled â€“ Disable NTFS pagefile encryption.
windows 11 enable ntfs page file encryption options
Windows 11 enables NTFS page file encryption options

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.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

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.

windows 11 ntfs encryption page file registry
Windows 11 NTFS encryption page file registry

Restart your computer to apply.

Reference:

Microsoft.com

Conclusion:

  • Enabling or disabling virtual memory page file encryption in Windows 11 can enhance security and privacy, but it also introduces processing overhead for filesystem operations.
  • Users can employ various methods such as the Command Prompt or Windows Terminal, Local Group Policy Editor, and Windows Registry to manage this feature.
  • It is essential to consider the potential impact on system performance and security needs before changing virtual memory page file encryption settings.
  • Following the guidelines and reference resources can help users configure virtual memory page file encryption according to their requirements.

Categories:

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *