How to Index Encrypted Files in Windows 11 Search
Indexing encrypted files in Windows 11 search lets you find text inside protected documents directly from the taskbar without turning off your security. Windows Search relies on an index, which is a hidden catalog of file details and text, to show results in less than a second.
By default, Windows 11 skips encrypted files to protect your privacy, meaning words inside those documents will not show up when you search. Changing this setting allows Windows to read and list the contents of your secure files so you can find what you need quickly.
Open Settings , navigate to Privacy & security, then Search, and click Advanced indexing options. In the File Settings section, check or uncheck “Index encrypted files” to enable or disable it.
Option 1Use Windows Settings
You can control whether Windows includes encrypted files in its search index using the Windows Settings app. This method is the easiest way for most people to turn this feature on or off. Open Settings , go to Privacy & security, then Search, and click Advanced indexing options to find the setting for including encrypted files in search.
- Open Settings. You can do this by pressing the Win+I on your keyboard.

Windows 11 Start menu with Settings gear icon highlighted. - On the left side, click Privacy & security. Then, on the right side, click Search. Open Search settings

Windows 11 Search bar with the 'Search' tile highlighted. - Look for Related settings and click on Advanced indexing options.

Windows 11 advanced indexing options for file types. - In the window that appears, click the Advanced button.

Clicking the Advanced button in Windows 11 indexing options. - In the Index Settings tab, find the File Settings section. To include encrypted files in searches, check the box next to Index encrypted files. To stop including them, uncheck the box. This box is unchecked by default.

- Follow the instructions that appear on your screen.
- If you see a message saying “Policy is in effect,” it means this setting was changed using a different method. Click OK.
- If you turned on “Index encrypted files” and your drive is not encrypted, click Continue to confirm.
- If you turned off “Index encrypted files,” click OK to confirm.
- Click OK to close the window.
- The search index will need to be updated. Click Close.
- You can now close the Settings window.
Option 2Use Local Group Policy Editor
For Windows Pro, Enterprise, or Education users, the Local Group Policy Editor offers another way to manage whether encrypted files are included in the search index. You can open this tool by typing gpedit.msc into the Windows search bar. Then, navigate through Computer Configuration to find the specific setting under Windows Components Search
- Open the Local Group Policy Editor. Type gpedit.msc into the Windows search bar and press Enter.
- In the left pane, go to: Computer Configuration > Administrative Templates > Windows Components > Search.

- In the right pane, find and double-click on the policy named Allow indexing of encrypted files.

- To turn ON including encrypted files in search:
- Select the Enabled option.
- Click OK.
- To turn OFF including encrypted files in search:
- Select the Disabled option.
- Click OK.
- To let Windows decide:
- Select the Not Configured option.
- Click OK.

- You can now close the Local Group Policy Editor.
Option 3Use Registry Editor (Manual Steps)
Manually editing the Windows Registry is an advanced method to control whether Windows includes encrypted files in its search index, similar to using the Group Policy Editor. You’ll need administrator rights and should back up your registry first. Open the Registry Editor by typing regedit into the Windows search bar to begin making changes.
This registry backup prevents data loss if you accidentally make an incorrect change to registry keys.
Admin permission needed: You will need administrator rights to perform these steps.
- Open the Registry Editor. Type regedit in the Windows search bar and press Enter. Click Yes if prompted by User Account Control.
- Navigate to the following location in the Registry Editor's left pane:
HKEY_LOCAL_USER\Software\Policies\Microsoft\Windows\Windows SearchIf the
Windows Searchkey does not exist, you may need to create it. Right-click on theWindowskey, select New > Key, and name itWindows Search.
- Right-click in the empty space on the right side, select New > DWORD (32-bit) Value.
- Name the new value
AllowIndexingEncryptedStoresOrItems. - Double-click the new value and set its Value data to
0. - Click OK.
- If the
AllowIndexingEncryptedStoresOrItemsvalue already exists, double-click it and delete its Value data (leave it blank) or delete the value entirely by right-clicking on it and selecting Delete.
References:
Summary
To control whether Windows includes encrypted files in its search index, you have three main options. The simplest method for most users is the Windows Settings app. More advanced users on specific Windows versions can use the Local Group Policy Editor or manually edit the Registry Editor, which can override settings made in the Settings app.
No comments yet — be the first to share your thoughts!