Prevent customization of indexed locations in Control Panel

If enabled, Search and Indexing Options in Control Panel does not allow opening the Modify Locations dialog. Otherwise it can be opened. Disabled by default.

Supported on: Any version of Microsoft Windows with Windows Search 4.0 or later
Registry HiveHKEY_CURRENT_USER
Registry PathSOFTWARE\Policies\Microsoft\Windows\Windows Search
Value NamePreventModifyingIndexedLocations
Value TypeREG_DWORD
Enabled Value1
Disabled Value0

search.admx

Administrative Templates (Computers)

Administrative Templates (Users)