Policy
Prevent indexing certain paths
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
If you enable this policy setting, you specify a list of paths to exclude from indexing. The user cannot enter any path that starts with one of the paths you specified. On a per-user basis, this policy setting will work only if a protocol handler referencing a SID-based user scope, such as MAPI, is specified. File system paths that do not reference a specific SID will not be excluded from indexing if these are only specified in the Group Policy under "User Configuration." To restrict a file system path from indexing, please specify the file system path to be indexed under the "Computer Configuration" Group Policy. If you enable and then disable this policy setting, users can index any path not restricted by other policies, but their original list of paths to index is not restored.
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Prevent Indexing Certain Paths ID PreventIndexingCertainPaths | list | None | List: standard |
Other policies in this category
Explore related policies at the same level.
- ComputerAdd primary intranet search locationMicrosoft Windows XP, or Windows Server 2003 with Windows Search version 3.01 or later
- ComputerAdd secondary intranet search locationsMicrosoft Windows XP, or Windows Server 2003 with Windows Search version 3.01 or later
- ComputerAllow Cloud SearchAt least Windows Server 2016, Windows 10
- ComputerAllow CortanaAt least Windows Server 2016, Windows 10
- ComputerAllow Cortana above lock screenAt least Windows Server 2016, Windows 10
- ComputerAllow Cortana Page in OOBE on an AAD accountAt least Windows Server 2016, Windows 10
- ComputerAllow indexing of encrypted filesMicrosoft Windows Vista, or any version of Windows with Windows Search 4.0 or later
- ComputerAllow search and Cortana to use locationAt least Windows Server 2016, Windows 10
- ComputerAllow search highlightsAt least Windows Server 2016, Windows 10
- ComputerAllow use of diacriticsMicrosoft Windows Vista, or any version of Windows with Windows Search 3.01 or later
- ComputerAlways use automatic language detection when indexing content and propertiesMicrosoft Windows 8 or later
- ComputerConfigures search on the taskbarAt least Windows 11