Windows 11 indexer uses 100% CPU after switching OneDrive account and folder paths
Environment
Windows 11 Pro 22H2 laptop with 16 GB RAM, multiple user profiles, OneDrive (consumer) signed in to a new account and user moved Documents and Desktop folders into OneDrive. Problem seen in primary user account after changing OneDrive target path and enabling Files On‑Demand.
Symptoms
Windows Search Indexer (SearchIndexer.exe) consumes near 100% CPU consistently for hours, causing fan spin-up and UI sluggishness. Indexing progress in Settings > Search > Searching Windows shows 'Indexing: 0 items remaining' but CPU stays high. High disk I/O on NTFS, and explorer.exe shows occasional 'Not responding' when opening large folder trees.
Observations
Event Viewer (Application) contains repeated entries from Microsoft-Windows-Search indicating 'Indexer reset' and 'Document changed during indexing' for files under C:\Users<user>\OneDrive; Process Monitor capture shows many CreateFile/QueryDirectory operations on the new OneDrive path and frequent re‑open of the same files. OneDrive sync client reports 'Files On‑Demand' enabled and shows placeholders. The problem reduces when OneDrive sync client is paused.
Already attempted
Signed out and back into OneDrive; ran 'Rebuild' in Indexing Options (Control Panel); excluded OneDrive folder from indexing temporarily — CPU dropped briefly then resumed when re‑added; reset SearchIndexer by stopping the Windows Search service and deleting the database at %ProgramData%\Microsoft\Search\Data\Applications\Windows then restarting — temporary relief for ~30 minutes. Disabled Office file iFilters and persistence no longer helped long‑term.
Question
What logs and tracing should I collect to determine whether SearchIndexer is stuck on Files On‑Demand placeholders, OneDrive notification events (change journals), or a search filter causing infinite reindexing loops? What reversible configuration will safely restore stable CPU usage while preserving search for local files?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags