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

  1. Press Windows Key + R to open the Run dialog box.
  2. Type regedit and press Enter.
  3. 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

  1. Right-click on the Windows Search key in the left pane or in the empty space of the right pane.
  2. Select New > DWORD (32-bit) Value.
  3. Name the new value: PreventIndexingOfflineFiles
  4. Double-click PreventIndexingOfflineFiles to open its properties.
  5. In the Value data field, enter 1.
  6. 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:

  1. Press Windows Key + R, type services.msc, and press Enter.
  2. Locate the Windows Search service in the list.
  3. 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.