"Please wait for the Windows search" when logging off

%3CLINGO-SUB%20id%3D%22lingo-sub-2075690%22%20slang%3D%22en-US%22%3E%22Please%20wait%20for%20the%20Windows%20search%22%20when%20logging%20off%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2075690%22%20slang%3D%22en-US%22%3E%3CP%3EI%20noticed%20when%20I%20log%20off%20a%20session%20host%20in%20Remote%20desktop%2FWVD%2C%20this%20message%20displays%20for%20about%2010%20seconds%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jgq85_0-1611078292997.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247513iF27D7F83705E838D%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jgq85_0-1611078292997.png%22%20alt%3D%22Jgq85_0-1611078292997.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAnd%20then%20it%20finally%20logs%20off.%3C%2FP%3E%3CP%3EIs%20this%20a%20service%20I%20should%20disable%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20image%20was%20Windows%2010%20multi%20session%20host%2C%202004%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2078708%22%20slang%3D%22en-US%22%3ERe%3A%20%22Please%20wait%20for%20the%20Windows%20search%22%20when%20logging%20off%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2078708%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411460%22%20target%3D%22_blank%22%3E%40Jgq85%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMake%20sure%20you%20are%20not%20out%20of%20disk%20space.%3C%2FP%3E%3CP%3ERun%20this%20query%20for%20that%20WVD%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%2F%2F%26nbsp%3Benter%26nbsp%3Ba%26nbsp%3BGB%26nbsp%3Bvalue%26nbsp%3Bto%26nbsp%3Bcheck%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Elet%26nbsp%3Bsetgbvalue%26nbsp%3B%3D%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E100%3C%2FSPAN%3E%3CSPAN%3E%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%2F%2F%26nbsp%3BQuery%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EPerf%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7C%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BTimeGenerated%26nbsp%3B%26gt%3B%26nbsp%3Bago(%3C%2FSPAN%3E%3CSPAN%3E1%3C%2FSPAN%3E%3CSPAN%3Eh)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7C%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BObjectName%26nbsp%3B%3D%3D%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22LogicalDisk%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eand%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BCounterName%26nbsp%3B%3D%3D%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Free%26nbsp%3BMegabytes%22%3C%2FSPAN%3E%3C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p%3B%3C%2FSPAN%3E%3CSPAN%3Eby%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BComputer%2C%26nbsp%3BInstanceName%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7C%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BFreeSpace%26nbsp%3B%26lt%3B%26nbsp%3Bsetgbvalue%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2079175%22%20slang%3D%22en-US%22%3ERe%3A%20%22Please%20wait%20for%20the%20Windows%20search%22%20when%20logging%20off%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2079175%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411460%22%20target%3D%22_blank%22%3E%40Jgq85%3C%2FA%3E%26nbsp%3B-%20I%20will%20always%20recommend%20disabling%20Windows%20Search%20in%20your%20image%20unless%20its%20specifically%20needed.%20Using%20FSLogix%20helps%2C%20but%20there%20is%20definitely%20a%20performance%20impact%20and%20you%20will%20come%20across%20issues%20like%20this.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

I noticed when I log off a session host in Remote desktop/WVD, this message displays for about 10 seconds:

Jgq85_0-1611078292997.png

And then it finally logs off.

Is this a service I should disable? 

 

The image was Windows 10 multi session host, 2004

5 Replies

@Jgq85 

 

Make sure you are not out of disk space.

Run this query for that WVD

// enter a GB value to check
let setgbvalue = 100;
// Query
Perf
where TimeGenerated > ago(1h)
where ObjectName == "LogicalDisk" and CounterName == "Free Megabytes"
where InstanceName !contains "D:"
where InstanceName !contains "HarddiskVolume1"
where InstanceName  !contains "_Total" 
extend FreeSpaceGB = CounterValue/1024
summarize FreeSpace = min(FreeSpaceGB) by Computer, InstanceName
where FreeSpace < setgbvalue

Hi @Jgq85 - I will always recommend disabling Windows Search in your image unless its specifically needed. Using FSLogix helps, but there is definitely a performance impact and you will come across issues like this. 

Disk space looks good no issues there

@Neil McLoughlin 

Hi Neil - I'm seeing conflicting messages about this which has confused me, there are quite a few articles relating to search in multi-user contexts - this one is very handy - https://jkindon.com/2020/03/15/windows-search-in-server-2019-and-multi-session-windows-10/

 

The thing is, since Win10 2004, and even with search disabled, I'm seeing loads of FSLogix errors in event viewer like the below.

 

Search catalog mount failed (The security ID structure is invalid.)

 

Do you know if these errors should be ignored, or if there is a configuration step to prevent FSLogix attempting to include them? I've looked at the RoamSearch reg entry, but believe this should be disabled by default.

 

Thanks for any help, one for the WVDUG perhaps!

 

Sorry for thread hijack!

I don't think I have a need for it honestly. I'd rather use "Everything" for searching.
We do have FSLogix. Is Windows Search required for that or something?