Disable Windows Indexing of Offline Files via Regedit
Windows Search automatically indexes cached offline network folders
to provide faster query results, but this behavior can consume
unnecessary system resources and disk I/O. This guide explains how to
disable the indexing of offline network directories using the Windows
Registry Editor (regedit), preventing the search service
from adding cached network locations to its index catalog.
Step 1: Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog box. - Type
regeditand pressEnter. - Click Yes if prompted by User Account Control (UAC).
Step 2: Navigate to the Windows Search Policy Key
In the Registry Editor address bar, navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Note: If the Windows Search key does not exist under
Windows, right-click on the Windows key,
select New > Key, and name it
Windows Search.
Step 3: Create and Configure the DWORD Value
- Right-click on the
Windows Searchkey in the left pane or in the empty space of the right pane. - Select New > DWORD (32-bit) Value.
- Name the new value:
PreventIndexingOfflineFiles - Double-click
PreventIndexingOfflineFilesto open its properties. - In the Value data field, enter
1. - Ensure the Base is set to Hexadecimal, then click OK.
Step 4: Apply the Changes
To make the policy take effect immediately without restarting your entire computer:
- Press
Windows Key + R, typeservices.msc, and pressEnter. - Locate the Windows Search service in the list.
- Right-click Windows Search and select Restart.
Alternatively, you can restart your computer. Windows will no longer
include offline network files and directories in the search index. To
revert this change later, delete the
PreventIndexingOfflineFiles value or set its data to
0.