Workaround for non-responsive Windows 10 Enterprise multi-session hosts

%3CLINGO-SUB%20id%3D%22lingo-sub-1018344%22%20slang%3D%22en-US%22%3ERe%3A%20Workaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1018344%22%20slang%3D%22en-US%22%3EHi%20Pieter%2C%20are%20you%20able%20to%20elaborate%20on%20those%20scenarios%3F%20We%20did%20have%20a%20lot%20of%20trouble%20with%20our%20previous%20host%20pool%20vms%20becoming%20unresponsive%20and%20need%20to%20determine%20if%20we%20have%20to%20disable%20this%20task%20on%20our%20current%20vm's.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1022365%22%20slang%3D%22en-US%22%3ERe%3A%20Workaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1022365%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F327987%22%20target%3D%22_blank%22%3E%40sbuntun%3C%2FA%3E%26nbsp%3BThe%20BgTaskRegistrationMaintenanceTask%20scheduled%20task%20runs%20every%207%20days%20and%20cleans%20up%20cached%20data%20that%20a%20service%20called%20BiSrv%20has%20for%20each%20user%20profile%20that%20was%20deleted.%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20%22enough%22%20user%20profiles%20deleted%20within%20those%207%20days%2C%20the%20system%20might%20run%20out%20of%20worker%20threads%20resulting%20in%20the%20WVD%20agent%20to%20be%20impacted.%3C%2FP%3E%0A%3CP%3EAnything%20that%20deletes%20user%20profiles%20after%20user%20logoff%20will%20accelerate%20this%2C%20including%20FSLogix%20which%20by%20default%20deletes%20the%20profile%20during%20logoff.%20I%20don't%20have%20data%20yet%20to%20provide%20more%20details%20on%20how%20many%20profiles%20would%20qualify%20as%20%22enough%22.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20information%20helps%20you%20understand%20which%20scenarios%20this%20issue%20would%20surface%20in.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1040803%22%20slang%3D%22en-US%22%3ERe%3A%20Workaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1040803%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20happened%20to%20my%20hosts.%20I%20upgraded%20FSLogix%20from%20FSLogix_Apps_2.9.7205.27375%20to%20FSLogix_Apps_2.9.7237.48865%20and%20it%20seemed%20to%20have%20fixed%20it.%20I%20am%20going%20to%20implement%20the%20next%20fix%20per%20this%20post.%20Thank%20goodness%20I%20found%20this%20discussion.%20My%20hosts%20are%20production%20and%20got%20real%20users.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1041497%22%20slang%3D%22en-US%22%3ERe%3A%20Workaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1041497%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F473863%22%20target%3D%22_blank%22%3E%40cangdao%3C%2FA%3E%3CBR%20%2F%3EHow%20many%20profiles%3F%3CBR%20%2F%3EWhat%20type%20of%20behaviors%20or%20early%20issues%20did%20you%20start%20to%20notice%20and%20did%20it%20quickly%20get%20worse%3F%3CBR%20%2F%3EAlso%2C%20how%20long%20into%20your%20build%20did%20you%20start%20to%20notice%20these%20issues%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1051974%22%20slang%3D%22en-US%22%3ERe%3A%20Workaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1051974%22%20slang%3D%22en-US%22%3E%3CP%3EDoes%20this%20need%20to%20be%20fixed%20if%20your%20environment%20is%20very%20small%2C%20or%20not%20many%20profiles%20being%20deleted%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1053176%22%20slang%3D%22en-US%22%3ERe%3A%20Workaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1053176%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F479521%22%20target%3D%22_blank%22%3E%40Travis_78%3C%2FA%3E%26nbsp%3BProbably%20not.%20If%20you%20experience%20non-responsive%20(hanging)%20hosts%2C%20please%20consider%20implementing%20the%20workaround.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1141031%22%20slang%3D%22en-US%22%3ERe%3A%20Workaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1141031%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20any%20update%20when%20the%20fix%20will%20be%20in%20Windows%20Update%20for%20the%20%3CSPAN%3EBiSrv%26nbsp%3Bissue%3C%2FSPAN%3E%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1141794%22%20slang%3D%22en-US%22%3ERe%3A%20Workaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1141794%22%20slang%3D%22en-US%22%3EIt%20will%20be%20part%20of%20the%20cumulative%20update%20in%20March%20on%20patch%20Tuesday.%20You%20can%20safely%20disable%20the%20scheduled%20task%20until%20that%20time.%20The%20same%20update%20will%20enable%20to%20scheduled%20task%20for%20those%20organizations%20that%20applied%20the%20workaround.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1017828%22%20slang%3D%22en-US%22%3EWorkaround%20for%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1017828%22%20slang%3D%22en-US%22%3E%3CP%3ESome%20Windows%20Virtual%20Desktop%20customers%20are%26nbsp%3B%3CSPAN%3Erecently%20affected%20by%20non-responsive%20Windows%2010%20Enterprise%20multi-session%20hosts.%20We%20have%20identified%20two%20issues%2C%20one%20related%20to%20a%20deadlock%20within%20FSLogix%20and%20one%20where%20a%20weekly%20BiSrv%20cleanup%20task%20exhausts%20system%20resources.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20both%20scenarios%20Windows%20Virtual%20Desktop%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fdiagnostics-role-service%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ediagnostics%3C%2FA%3E%20show%20VMs%20in%20a%20%22NoHeartBeat%22%20state.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20recommend%20to%20take%20the%20following%20actions%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EUpgrade%20FSLogix%20to%20the%20latest%20version%20using%20this%20%3CA%20href%3D%22https%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F3%2Fd%2Fd%2F3ddfe262-56c7-496c-9af6-82602d2d7b5d%2FFSLogix_Apps_2.9.7237.48865.zip%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Elink%3C%2FA%3E.%20This%20update%20contains%20a%20fix%20for%20a%26nbsp%3Bdeadlock%20regression%20in%20version%26nbsp%3B2.9.7205.27375%20of%20frxdrvvt.sys%20.%3C%2FLI%3E%0A%3CLI%3EWhile%20we%20are%20working%20on%20an%20update%20for%20the%20BiSrv%20issue%2C%20which%20will%20be%20available%20through%20Windows%20Update%2C%20we%20recommend%20to%20temporarily%20disable%20the%20scheduled%26nbsp%3BBgTaskRegistrationMaintenanceTask.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EThis%20can%20be%20done%20by%20either%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESigning%26nbsp%3Binto%20Windows%2C%20clicking%20the%20Windows%20button%2C%20searching%20for%20%22Task%20Scheduler%22%2C%20navigating%20to%26nbsp%3B%5CMicrosoft%5CWindows%5CBrokerInfrastructure%2C%20right%20clicking%20the%20BgTaskRegistrationMaintenanceTask%26nbsp%3B%26nbsp%3Band%20selecting%20%22disable%22.%3C%2FLI%3E%0A%3CLI%3ESign%20into%20Windows%2C%20click%20the%20Windows%20button%2C%20search%20for%20%22command%20line%22%2C%20right%20click%20it%2C%20select%20%22Run%20as%20Administrator%22%2C%20and%20run%20the%20following%20command%3A%26nbsp%3B%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eschtasks%20%2Fchange%20%2Ftn%20%22%5CMicrosoft%5CWindows%5CBrokerInfrastructure%5CBgTaskRegistrationMaintenanceTask%22%20%2Fdisable%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EUpdate%3A%26nbsp%3B%3C%2FSTRONG%3Ea%20fix%20for%20the%20BiSrv%20issue%20is%20made%20available%20as%20part%20of%20the%20latest%20cumulative%20update.%20This%20will%20also%20re-enable%20the%20scheduled%20task%20if%20the%20workaround%20was%20applied.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Some Windows Virtual Desktop customers are recently affected by non-responsive Windows 10 Enterprise multi-session hosts. We have identified two issues, one related to a deadlock within FSLogix and one where a weekly BiSrv cleanup task exhausts system resources.

In both scenarios Windows Virtual Desktop diagnostics show VMs in a "NoHeartBeat" state. 

 

We recommend to take the following actions:

  1. Upgrade FSLogix to the latest version using this link. This update contains a fix for a deadlock regression in version 2.9.7205.27375 of frxdrvvt.sys .
  2. While we are working on an update for the BiSrv issue, which will be available through Windows Update, we recommend to temporarily disable the scheduled BgTaskRegistrationMaintenanceTask. 

This can be done by either:

  • Signing into Windows, clicking the Windows button, searching for "Task Scheduler", navigating to \Microsoft\Windows\BrokerInfrastructure, right clicking the BgTaskRegistrationMaintenanceTask  and selecting "disable".
  • Sign into Windows, click the Windows button, search for "command line", right click it, select "Run as Administrator", and run the following command:  

 

schtasks /change /tn "\Microsoft\Windows\BrokerInfrastructure\BgTaskRegistrationMaintenanceTask" /disable

 

 

Update: a fix for the BiSrv issue is made available as part of the latest cumulative update. This will also re-enable the scheduled task if the workaround was applied.

 

 

 

 

8 Replies
Hi Pieter, are you able to elaborate on those scenarios? We did have a lot of trouble with our previous host pool vms becoming unresponsive and need to determine if we have to disable this task on our current vm's.

@sbuntun The BgTaskRegistrationMaintenanceTask scheduled task runs every 7 days and cleans up cached data that a service called BiSrv has for each user profile that was deleted.

If you have "enough" user profiles deleted within those 7 days, the system might run out of worker threads resulting in the WVD agent to be impacted.

Anything that deletes user profiles after user logoff will accelerate this, including FSLogix which by default deletes the profile during logoff. I don't have data yet to provide more details on how many profiles would qualify as "enough". 

 

Hope this information helps you understand which scenarios this issue would surface in.

This happened to my hosts. I upgraded FSLogix from FSLogix_Apps_2.9.7205.27375 to FSLogix_Apps_2.9.7237.48865 and it seemed to have fixed it. I am going to implement the next fix per this post. Thank goodness I found this discussion. My hosts are production and got real users.

@cangdao
How many profiles?
What type of behaviors or early issues did you start to notice and did it quickly get worse?
Also, how long into your build did you start to notice these issues?

Does this need to be fixed if your environment is very small, or not many profiles being deleted?

@Travis_78 Probably not. If you experience non-responsive (hanging) hosts, please consider implementing the workaround. 

Is there any update when the fix will be in Windows Update for the BiSrv issue?

It will be part of the cumulative update in March on patch Tuesday. You can safely disable the scheduled task until that time. The same update will enable to scheduled task for those organizations that applied the workaround.