Skip to content
Follow
Windows

How to Turn On or Off Paging File Encryption in Windows 11

Richard
Written by
Richard
Feb 15, 2026 Updated Mar 31, 2026 4 min read
How to Turn On or Off Paging File Encryption in Windows 11
How to Turn On or Off Paging File Encryption in Windows 11

This guide shows you how to turn your paging file encryption on or off in Windows 11. We’ll break down what that means.

⚡ Quick Answer

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 adds a security layer to your computer’s virtual memory, which is extra storage used when your RAM is full.

Why does this matter? Right now, your paging file isn’t encrypted by default. This means that if someone gains access to your computer, they could potentially read the data stored there. Encrypting the paging file protects this data.

What happens when you encrypt it? Your data becomes safer. But your computer might work a little harder, which could slow it down slightly.

How to Check and Change Paging File Encryption

You can turn this encryption on or off using these methods:

  • Using Command Prompt or Windows Terminal
  • Using the Local Group Policy Editor
  • Using the Windows Registry

Method 1Use Command Prompt or Windows Terminal

You can quickly turn paging file encryption on or off in Windows 11 using the Command Prompt or Windows Terminal with a simple command.

  1. 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
  2. Type this command and press Enter to check if encryption is on or off:

    fsutil behavior query encryptpagingfile
  3. Look at the result:
    • If you see EncryptPagingFile = 0, encryption is off.
    • If it says EncryptPagingFile = 1, encryption is on.
  4. To turn on encryption, type this command and press Enter:

    fsutil behavior set encryptpagingfile 1

    ⚠️ Admin required
  5. To turn off encryption, type this command and press Enter:

    fsutil behavior set encryptpagingfile 0

    ⚠️ Admin required
  6. Restart your computer after running these commands. The changes won’t work until you do.

Method 2Use Local Group Policy Editor

If you have Windows 11 Pro or Enterprise, you can use the Local Group Policy Editor to manage paging file encryption through a visual interface.

  1. Press ⊞ Win+R keys together.
  2. Type gpedit.msc and press Enter to open the Local Group Policy Editor. ⚠️ Admin required
  3. Navigate to this folder: Computer Configuration\Administrative Templates\System\Filesystem\NTFS
  4. On the right side, find and double-click Enable NTFS pagefile encryption.
  5. Choose one of these options:
    • Not Configured – The default setting.
    • Enabled – Turn on pagefile encryption.
    • Disabled – Turn off pagefile encryption.
  6. Click OK and close the editor.
  7. Restart your computer to apply the changes.
Windows 11 Local Group Policy Editor
windows 11 edit group policy

Enable NTFS pagefile encryption setting
windows 11 enable ntfs page file encryption

Method 3Use Windows Registry Editor

For Windows versions without the Group Policy Editor, you can turn paging file encryption on or off using the Windows Registry Editor, but be careful.

  1. Press ⊞ Win+R keys together.
  2. Type regedit and press Enter to open the Registry Editor. ⚠️ Admin required
  3. Go to this location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
  4. On the right side, find NtfsEncryptPagingFile and double-click it.
  5. Change the value to:
    • 1 to turn encryption on
    • 0 to turn encryption off
  6. Click OK and close the Registry Editor.
  7. Restart your computer to apply the change.
Windows Registry NtfsEncryptPagingFile
windows 11 ntfs encryption page file registry

Summary

Encrypting your paging file in Windows 11 makes your data safer by protecting temporary files, though it might slightly slow down your computer.
  • 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?

You generally shouldn’t turn off paging files in Windows 11, even with lots of RAM, as disabling it can make your PC unstable and prone to crashes.

Does 🪟 Windows 11 have file encryption?

The Encrypted File System isn’t available on Windows 11 Home Edition. It’s important to note that the Encrypted File System is unavailable on Windows 11 Home Edition, so users should consider upgrading to Windows 11 Pro for this functionality.

How do I encrypt PageFile in Windows?

To encrypt your paging file, enter ‘cmd’ in the Windows Start search field. Then, right-click Command Prompt and select ‘Run as administrator.’ Check the result: ‘EncryptPagingFile = 0’ means encryption is off. ‘EncryptPagingFile = 1’ means it’s on.

How do I manage paging files in 🪟 Windows 11?

Go to “Advanced System Settings,” click “Settings” under the Performance section, then navigate to the “Advanced” tab. From there, you can change your virtual memory settings and set a custom paging file size. Ensure that the paging file is large enough to supplement your RAM.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

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.

📚 Related Tutorials

How to Open Windows Terminal as Admin Automatically
Windows How to Open Windows Terminal as Admin Automatically
How to Enable or Disable Regedit in Windows 11
Windows How to Enable or Disable Regedit in Windows 11
How to View Local Group Policies that are Configured in Windows 11
Windows How to View Local Group Policies that are Configured in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

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