Windows Search Cannot Find OneDrive Files: OneDrive for Business Fix
🔍 WiseChecker

Windows Search Cannot Find OneDrive Files: OneDrive for Business Fix

When you type a file name into the Windows 11 or Windows 10 search bar, OneDrive for Business files stored locally often do not appear in the results. This happens because Windows Search is not indexing the OneDrive folder by default, or because the indexing database is corrupted. This article explains the technical cause of the search failure and provides a step-by-step fix to rebuild the index and add OneDrive to the indexed locations. After completing these steps, your OneDrive files will appear in Windows Search results immediately.

Key Takeaways: Restoring Windows Search for OneDrive Files

  • Windows Search indexing options > Modify: Add the OneDrive folder to the list of indexed locations to enable file search.
  • Indexing Options > Advanced > Rebuild: Rebuild the search index to fix corruption that prevents OneDrive files from appearing.
  • PowerShell command Get-WindowsSearchSetting: Verify that Windows Search is enabled and check the current indexing status.

ADVERTISEMENT

Why Windows Search Cannot Find OneDrive Files

Windows Search relies on an index database that catalogs file names, contents, and metadata. By default, Windows indexes standard user folders such as Documents, Pictures, and Desktop. OneDrive for Business files that are synced locally reside in a folder under %UserProfile%\OneDrive - [TenantName]. This folder is not automatically included in the index. If the folder is excluded, Windows Search will not scan it, and files stored there will not appear in search results.

A second cause is a corrupted index database. When the index becomes damaged, Windows Search may stop responding or return incomplete results. The index can become corrupt after a Windows update, a disk error, or an improper shutdown. In this case, rebuilding the index resolves the problem.

A third cause is that the Windows Search service itself is stopped or disabled. This can happen after a system optimization tool or a manual change to services. The search service must be running for any indexed results to appear.

Steps to Fix Windows Search for OneDrive Files

Follow these steps in order. Each step builds on the previous one. Do not skip the rebuild step unless the problem is resolved earlier.

  1. Open Indexing Options
    Press the Windows key on your keyboard, type Indexing Options, and select the result. The Indexing Options window opens. This window shows the current indexed locations and the index status.
  2. Add the OneDrive Folder to the Index
    Click the Modify button. In the Change Selected Locations dialog, expand C: and then expand Users. Expand your user folder. Find the folder named OneDrive – [Your Tenant Name]. Check the box next to it. Click OK. Windows Search will now include this folder in the index.
  3. Rebuild the Search Index
    In Indexing Options, click the Advanced button. If prompted by User Account Control, click Yes. In the Advanced Options window, under the Index Settings tab, click the Rebuild button. A confirmation dialog appears. Click OK. The rebuild process begins. This can take 30 minutes to several hours depending on the size of your OneDrive folder. You can continue working while the index rebuilds, but search results will be incomplete until the process finishes.
  4. Verify the Windows Search Service Is Running
    Press Windows + R, type services.msc, and press Enter. Scroll down to Windows Search. The Status column should show Running. If it shows a blank space, right-click Windows Search and select Start. Set the Startup type to Automatic by right-clicking, selecting Properties, and choosing Automatic from the dropdown. Click Apply and OK.
  5. Test the Search
    Open File Explorer and navigate to your OneDrive folder. Create a test file named search-test-2025.docx. Press Windows + S, type search-test-2025, and press Enter. The file should appear in the search results. If it does not, wait 10 minutes for the index to update, then try again.

ADVERTISEMENT

If OneDrive Files Still Do Not Appear in Search

Windows Search returns no results at all

If Windows Search returns no results for any file, the index may be corrupted beyond repair. Run the Search and Indexing troubleshooter. Press Windows + I to open Settings. Go to System > Troubleshoot > Other troubleshooters. Click Run next to Search and Indexing. Follow the on-screen instructions. This tool can detect and fix common indexing problems automatically.

OneDrive files appear but are not searchable by content

Windows Search can index file names and file contents. If you want to search inside Office documents, PDFs, or text files, the index must include the content. In Indexing Options, click Advanced. Under the File Types tab, verify that the file extensions you use (such as .docx, .pdf, .xlsx) are listed with the Index Properties and File Contents option selected. Add any missing extensions by typing the extension in the box and clicking Add.

OneDrive files are only stored in the cloud

Files that are not synced to your local drive cannot be indexed by Windows Search. Open OneDrive settings by right-clicking the OneDrive cloud icon in the system tray and selecting Settings. Go to the Sync and backup tab. Under Files On-Demand, make sure Save space and download files as you use them is selected. Right-click any file or folder in File Explorer and select Always keep on this device to force a local download. Once the file is local, Windows Search will index it.

Windows Search Indexing vs OneDrive Files On-Demand: Key Differences

Item Windows Search Indexing OneDrive Files On-Demand
Description A local database that catalogs file metadata and contents for fast searching A sync mode that downloads files only when you open them, saving local disk space
Files included Only files that are physically present on the local drive All OneDrive files appear in File Explorer but may be placeholder files without local content
Search behavior Searches indexed locations for file names and content Placeholder files are not indexed by Windows Search and will not appear in results until downloaded
User control Add or remove folders via Indexing Options > Modify Right-click a file or folder and choose Always keep on this device to force local storage
Performance impact Rebuilding the index uses CPU and disk I/O for several hours Files On-Demand reduces local disk usage but requires internet to open files not yet cached

After you add the OneDrive folder to the index and rebuild the database, Windows Search will consistently find your OneDrive for Business files. To prevent the issue from recurring, set Windows Search service to Automatic startup and run the Indexing Options troubleshooter once a month. If you frequently search file contents, ensure that the File Types tab in Advanced Options includes all relevant extensions with content indexing enabled.

ADVERTISEMENT