Windows

Windows 11 Search Finds No Results for Files Moved to New OneDrive Folder Path

Environment

Environment

Windows 11 Pro 22H2 x64 on Lenovo laptop (local NTFS C:), OneDrive for Business (synced) relocated from default 'C:\Users\alice\OneDrive - Org' to 'D:\OneDrive_Projects' using OneDrive client settings. Search indexer configured to include D: but corporate group policy enables 'Windows Search' indexing with cloud content disabled.

Symptoms

Symptoms

Start menu and File Explorer searches return zero results for filenames that exist in the relocated OneDrive folder; manually opening the folder and using in‑folder search (Ctrl+F) finds files. Right-click > 'Search in Explorer' yields no indexed matches. Desktop full-text search for file contents also fails for these files.

Observations

Observations

Windows Search Service (WSearch) running. Indexing Options shows D:\OneDrive_Projects included but items pending; indexer UI lists many paths under 'Excluded: OneDrive' due to policy. Event Viewer (Application logs) records SearchIndexer warnings like 'Failed to index item' with HRESULT 0x80070005 (access denied) for files under D:\OneDrive_Projects. Files are readable by user account; OneDrive client reports 'Files are available on this device'.

Already attempted

Already attempted

Restarted Windows Search service, rebuilt search index, re-added folder to index, paused/resumed OneDrive sync, set files to 'Always keep on this device' (local copy), and checked NTFS permissions (Owner is current user, full control). Group Policy Editor showed Cloud Content Indexing disabled at machine level but corporate policy cannot be edited locally.

Question

Question

Why does Windows Search fail to index or return results for files after moving the OneDrive folder to a custom drive, and what safe steps can I take to restore search functionality without data loss or disabling corporate policies?

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1w ago• Trouble ID

Most likely causes

Group Policy (Cloud Content Search disabled) causes Windows Search to exclude folders that the system detects as OneDrive-managed when not in default location. 90%
OneDrive's relocation changed folder attributes or reparse points so the indexer treats files as cloud‑only or protected, causing an access-denied indexer exception. 35%
Index corruption specific to the new folder path requiring indexer rebuild with OneDrive cooperation. 25%

Summary

Indexing failures with access denied and exclusion entries indicate either a conflict with OneDrive's new folder path and Windows Search's cloud-content/OneDrive integration, or group policy intentionally blocking cloud-indexing for OneDrive-managed folders. The indexer can see the path but may be skipping due to attributed exclusion or permission mapping between OneDrive process and search service.

Suggested Fixes

Diagnostic step 1
Temporarily enable detailed Indexer logging: in Event Viewer enable diagnostic logging for 'Microsoft-Windows-Search' and reproduce the search to capture precise failure codes; do not change policies yet.
Diagnostic step 2
Check and compare folder attributes (hidden, system, reparse point) and NTFS ACLs on original OneDrive path vs new D:\OneDrive_Projects. If reparse points or symlinks are present, remove only for testing and restore afterwards.
Diagnostic step 3
On a test user account, move a small sample folder to D: (not under OneDrive) and confirm it indexes; this isolates OneDrive-specific behavior from general indexing problems.

Continue troubleshooting

Matched from the title, description and tags