How to Turn On or Off Paging File Encryption in Windows 11
Managing paging file encryption in Windows 11 adds a layer of security to temporary system data. Understanding how this feature works helps decide whether the performance trade-off is worth it.
Encrypting your paging file in Windows 11 protects sensitive data. Use the `fsutil behavior set encryptpagingfile` command in Windows Terminal, the Local Group Policy Editor, or the Registry Editor to enable or disable this feature. Always restart your computer after making changes.
What is Paging File Encryption?
Paging file encryption in Windows 11 protects temporary data stored on your hard drive. Physical memory fills up fast during heavy workloads, prompting Windows 11 to lean on a virtual memory file known as the paging file to handle overflow data. Encrypting this paging file stops others from reading it if they gain access to your drive.
Random Access Memory (RAM) runs out during intensive tasks, causing Windows 11 to use the paging file to store temporary data. The paging file does not encrypt sensitive data by default, allowing unauthorized users to read stored information if they access the computer. Encrypting the paging file protects this temporary data from snooping and unauthorized access, safeguarding information stored by the system.
What happens during encryption? Data becomes safer. The computer might work a little harder, however, which can slow performance slightly.
How to Check and Change Paging File Encryption
Enabling or disabling this encryption requires specific configuration methods:
- Using Command Prompt or Windows Terminal
- Using the Local Group Policy Editor
- Using the Windows Registry
Method 1Use Command Prompt or Windows Terminal
Command Prompt or Windows Terminal offers a fast way to check the current status of paging file encryption in Windows 11. Search for “Windows Terminal” in the Start menu , right-click the result, and select Run as administrator. Typing a specific command reveals this security feature’s status instantly, bypassing complex settings menus.
- Open Windows Terminal as Administrator. To do this, search for "Windows Terminal" in the Start menu, right-click it, and select Run as administrator. ⚠️ Admin required
- Type this command and press Enter to check if encryption is on or off:
fsutil behavior query encryptpagingfile - Look at the result:
- If you see EncryptPagingFile = 0, encryption is off.
- If it says EncryptPagingFile = 1, encryption is on.
- To turn on encryption, type this command and press Enter:
fsutil behavior set encryptpagingfile 1
⚠️ Admin required - To turn off encryption, type this command and press Enter:
fsutil behavior set encryptpagingfile 0
⚠️ Admin required - Restart your computer after running these commands. The changes won't work until you do.
Method 2Use Local Group Policy Editor
Windows 11 Pro or Enterprise editions allow toggling paging file encryption through the Local Group Policy Editor. Press the Windows key + R on your keyboard, type gpedit.msc into the run box, and press Enter to open the Local Group Policy Editor. This tool offers a visual interface for managing the security setting without command lines, making navigation more accessible.
- Press Windows + R keys together.
- Type
gpedit.mscand press Enter to open the Local Group Policy Editor. ⚠️ Admin required - Navigate to this folder:
Computer Configuration\Administrative Templates\System\Filesystem\NTFS - On the right side, find and double-click Enable NTFS pagefile encryption.
- Choose one of these options:
- Not Configured – The default setting.
- Enabled – Turn on pagefile encryption.
- Disabled – Turn off pagefile encryption.
- Click OK and close the editor.
- Restart your computer to apply the changes.


Method 3Use Windows Registry Editor
Systems lacking the Group Policy Editor rely on the Registry Editor to control paging file encryption in Windows 11. This Registry Editor method involves making a specific change to the Windows 11 system registry. Extreme care prevents unintended system instability during these registry edits.
- Press Windows + R keys together.
- Type
regeditand press Enter to open the Registry Editor. ⚠️ Admin required - Go to this location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem - On the right side, find NtfsEncryptPagingFile and double-click it.
- Change the value to:
- 1 to turn encryption on
- 0 to turn encryption off
- Click OK and close the Registry Editor.
- Restart your computer to apply the change.

Summary
Encrypting the paging file in Windows 11 boosts security by making temporary data on the hard drive much harder for unauthorized people to read. Processing power demands increase to handle encryption and decryption tasks, leading to potential speed reductions across the system.- Why encrypt your paging file? It keeps your data safer by stopping others from reading temporary files on your hard drive.
- What's the downside? Turning on encryption may cause your computer to work a little harder, which can slow it down slightly.
- How many ways can you do this? You can use the Command Prompt, Local Group Policy Editor, or Registry Editor to change this setting.
- Don't forget! Always restart your computer after making changes for them to take effect.
- Need more help? Check the official Microsoft page: Enable Pagefile Encryption - Microsoft
Should I turn off paging files in 🪟 Windows 11?
Paging files remain necessary in Windows 11 even with ample RAM, because disabling them causes system instability and frequent crashes.
Does 🪟 Windows 11 have file encryption?
The Encrypted File System is unavailable on Windows 11 Home Edition, requiring an upgrade to Windows 11 Pro for this specific functionality.
How do I encrypt PageFile in Windows?
To encrypt the paging file, enter 'cmd' in the Windows Start search field. Right-click Command Prompt and select 'Run as administrator.' Inspect the output: 'EncryptPagingFile = 0' indicates disabled encryption, while 'EncryptPagingFile = 1' shows active encryption.
How do I manage paging files in 🪟 Windows 11?
Navigate to "Advanced System Settings," click "Settings" under the Performance section, and open the "Advanced" tab. Virtual memory configuration lives here, allowing custom paging file sizes. Sufficient paging file sizing ensures proper workload supplementation for physical RAM.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!