Disable Indexing of Encrypted Files via Registry
This guide explains how to disable Windows Search from indexing Encrypted File System (EFS) files and volumes using the Windows Registry Editor (Regedit). By modifying a specific registry policy, you can prevent sensitive encrypted data from being indexed and cached in plain text within the search database, thereby enhancing the overall data security of your system.
Steps to Disable Indexing of Encrypted Files
- Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog box. - Type
regeditand pressEnter(or click OK). - Click Yes if prompted by User Account Control (UAC).
- Press
- Navigate to the Windows Search Key
Paste the following path into the address bar at the top of the Registry Editor window and press
Enter:HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows SearchIf the
Windows Searchkey does not exist underWindows:- Right-click on the
Windowsfolder (key). - Select New > Key.
- Name the new key
Windows Search.
- Right-click on the
- Create or Modify the DWORD Value
- Select the
Windows Searchkey in the left pane. - Right-click in the empty space of the right pane and select New > DWORD (32-bit) Value.
- Name the new value
AllowIndexingEncryptedStoresOrItems. - Double-click the newly created
AllowIndexingEncryptedStoresOrItemsvalue. - In the Value data field, enter
0(ensure the Base is set to Hexadecimal). - Click OK to save the changes.
- Select the
- Apply the Changes
- To apply the changes immediately, restart the Windows Search
service:
- Press
Windows Key + R, typeservices.msc, and pressEnter. - Locate Windows Search in the list.
- Right-click it and select Restart.
- Press
- Alternatively, restart your computer.
- To apply the changes immediately, restart the Windows Search
service:
Once completed, Windows will permanently skip encrypted files and folders during its automated indexing routines.