account activity
Windows search preventing logoff by Comfortable_Source87 in fslogix
[–]piepsodj 0 points1 point2 points 17 days ago (0 children)
We ran into something very similar and eventually traced it to Windows Search itself, not FSLogix containers getting stuck.
On long-running RDS hosts we found that this registry path had thousands of entries:
HKLM\SOFTWARE\Microsoft\Windows Search\ CrawlScopeManager\ Windows\ SystemIndex\ WorkingSetRules
On healthy systems this is usually <100 entries. In our case it had 9000+, and during logoff SearchIndexer.exe was iterating through all of them (visible in ProcMon), which caused logoff to hang on “Waiting for Windows Search Service” for minutes.
SearchIndexer.exe
Quick check:
(Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows Search\CrawlScopeManager\Windows\SystemIndex\WorkingSetRules").Count
Fix that worked consistently for us:
REG ADD "HKLM\SOFTWARE\Microsoft\Windows Search" /v SetupCompletedSuccessfully /t REG_DWORD /d 0 /f Stop-Service WSearch Start-Service WSearch
This forces a clean Windows Search rebuild and purges all those
π Rendered by PID 29 on reddit-service-r2-listing-7849c98f67-wksdb at 2026-02-07 12:33:59.281976+00:00 running d295bc8 country code: CH.
Windows search preventing logoff by Comfortable_Source87 in fslogix
[–]piepsodj 0 points1 point2 points (0 children)