Windows 11 features a built-in search indexer that constantly scans your connected drives in the background to build a database of filenames and contents. This makes finding a specific document incredibly fast. However, when you connect a portable USB flash drive or external hard drive, this background indexing can become a significant annoyance.
Because USB drives are often slower than internal SSDs, the indexing process can consume 100% of the drive’s bandwidth, causing file transfers to crawl. More frustratingly, the active indexing process will often trigger a “Drive is in use” error when you attempt to safely eject the USB stick.
You can solve this by disabling indexing specifically for removable drives while leaving it active for your main C: drive.
How to Disable Indexing on a Specific USB Drive
- Plug your USB flash drive or external hard drive into your Windows 11 PC.
- Open File Explorer (press
Windows Key + E). - Click on This PC in the left-hand navigation pane.
- Locate your USB drive under the “Devices and drives” section. Right-click the drive and select Properties.
- Look at the very bottom of the General tab. You will see a checkbox labeled: “Allow files on this drive to have contents indexed in addition to file properties”.
- Uncheck this box.
- Click Apply.
Handling the Attribute Error Prompt
When you click Apply, Windows will ask you how you want to apply this attribute change.
- Select the second option: “Apply changes to drive X:\, subfolders and files”.
- Click OK.
- Windows will now iterate through every file on the USB drive to remove the indexing flag. If the drive is large and filled with thousands of tiny files, this process might take a few minutes.
- If you receive an “Access Denied” error for hidden system files (like the System Volume Information folder), simply click Ignore All. This is normal and expected.
Once the progress bar completes, click OK to close the properties window. Windows Search will immediately drop its lock on the drive. File transfers will be slightly faster, and you will be able to safely eject the drive without the operating system holding it hostage.