Skip to content
Follow
Windows 🟡 Intermediate

How to Enable or Disable Modify Indexed Locations in Indexing Options in Windows 11

Richard
Written by
Richard
Aug 5, 2026 4 min read
How to Enable or Disable Modify Indexed Locations in Indexing Options in Windows 11
How to Enable or Disable Modify Indexed Locations in Indexing Options in Windows 11

Modifying indexed locations in Windows 11 controls which folders and files the search function can scan. This feature lets you decide what parts of your computer Windows searches to speed up file finding.

Search indexing creates a catalog of your files and their contents. When you search for something on your PC, Windows uses this catalog to find results much faster than if Windows had to check every file on its own.

Windows 11, by default, indexes certain common locations. You can customize which drives, folders, and file types are included or excluded from this index.

Disabling the ability to modify indexed locations stops anyone from adding or removing search index areas. You need administrator rights to make this change.

⚡ Quick Answer

To disable changing indexed locations, open Registry Editor and navigate to 🗝️HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search, then create a DWORD value named PreventModifyingIndexedLocations and set its data to 1. This prevents users from adding or removing indexed locations.

Method 1Local Group Policy Editor

You can control whether people can change the locations Windows searches for files using the Local Group Policy Editor on Windows 11 Pro, Enterprise, and Education versions. This tool lets you easily turn this setting on or off to manage search indexing.

  1. Open the Local Group Policy Editor. You can do this by typing gpedit.msc in the Windows search bar and pressing Enter.
  2. In the left-hand menu, go to: Computer Configuration > Administrative Templates > Windows Components > Search.
  3. In the right-hand section, find and double-click on the setting named Prevent customization of indexed locations in Control Panel .
Prevent customization of indexed locations in Control Panel setting.
Prevent customization of indexed locations in Control Panel setting.

To Enable Changing Indexed Locations (Default Setting)

To let people change which folders Windows searches for indexing, you need to make sure a certain setting isn’t turned on in the Registry Editor. This involves checking a specific spot in the registry to confirm that modifying indexed locations is allowed.
  1. Select the option Not Configured.
  2. Click OK.

To Disable Changing Indexed Locations

  1. Select the option Enabled.
  2. Click OK.
Options for preventing customization of indexed locations in Windows 11.
Options for preventing customization of indexed locations in Windows 11.
⚠️Warning
You can stop people from changing the folders Windows indexes by adding or changing a specific setting in the Registry Editor. This action prevents users from adding or removing locations from the search index, helping keep your system’s search consistent.

Method 2Registry Editor

Modifying indexed locations in Indexing Options achieves the same search result as Option One. This setting works on all Windows 11 editions and helps Windows find your files faster.

📝Note
Editing the Windows Registry incorrectly can cause problems with your system. It's recommended to back up your registry before making changes. You need administrator rights to edit the registry.

To Enable Changing Indexed Locations (Default Setting)

To enable changing indexed locations, ensure a specific registry value isn't set.

Follow these steps:

  1. Open the Registry Editor by typing regedit in the Windows search bar and pressing Enter. If prompted by User Account Control, click Yes.
  2. Navigate to the following path in the left-hand pane: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search. If the Windows Search key does not exist, you will need to create it. Right-click on Windows, select New, then Key, and name it Windows Search.
  3. In the right-hand pane, right-click on an empty space, select New, then DWORD (32-bit) Value.
  4. Name the new value PreventModifyingIndexedLocations.
  5. Make sure the Value data for PreventModifyingIndexedLocations is set to 0 or that the value is deleted. If it exists and is set to 1, change it to 0.
  6. Click OK.
  7. Close the Registry Editor.

To Disable Changing Indexed Locations

To disable changing indexed locations, add or modify a specific registry value.

Follow these steps:

  1. Open the Registry Editor by typing regedit in the Windows search bar and pressing Enter. If prompted by User Account Control, click Yes.
  2. Navigate to the following path in the left-hand pane: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search. If the Windows Search key does not exist, you will need to create it. Right-click on Windows, select New, then Key, and name it Windows Search.
  3. In the right-hand pane, right-click on an empty space, select New, then DWORD (32-bit) Value.
  4. Name the new value PreventModifyingIndexedLocations.
  5. Double-click on the new PreventModifyingIndexedLocations value.
  6. In the Value data field, type 1.
  7. Click OK.
  8. Close the Registry Editor.

Summary

You have the power to decide if users can change the locations Windows indexes for searching on Windows 11. By using either the Local Group Policy Editor or the Registry Editor, you can easily enable or disable this feature, which is helpful for keeping your computer's search settings just how you want them.

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 Pause Search Indexing in Windows 11
Windows How to Pause Search Indexing in Windows 11
How to Change Windows 11 Search Index Location
Windows How to Change Windows 11 Search Index Location
How to Enable or Disable Use of Diacritics in Search Index in Windows 11
Windows How to Enable or Disable Use of Diacritics in Search Index in Windows 11
How to Enable or Disable Include Encrypted Files in Search Index in Windows 11
Windows How to Enable or Disable Include Encrypted Files in Search Index 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 *