SOLVED
Home

The task you are trying to do can’t be completed because Remote Desktop Services is currently busy

%3CLINGO-SUB%20id%3D%22lingo-sub-872181%22%20slang%3D%22en-US%22%3EThe%20task%20you%20are%20trying%20to%20do%20can%E2%80%99t%20be%20completed%20because%20Remote%20Desktop%20Services%20is%20currently%20busy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-872181%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20a%20WVD%20deployment%20and%20we%20have%20faced%20some%20issues%20with%20WVD%2C%20here%20you%20have%20the%20list%20of%20our%20current%20pain%20points%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EUsers%20are%20getting%20this%20error%20messages%20while%20trying%20to%20access%20WVD%20through%20the%20Remote%20Desktop%20App%20or%20through%20the%20Web%3C%2FLI%3E%3C%2FOL%3E%3COL%3E%3CUL%3E%3CLI%3EThe%20error%20message%3A%20%E2%80%9CThe%20task%20you%20are%20trying%20to%20do%20can%E2%80%99t%20be%20completed%20because%20Remote%20Desktop%20Services%20is%20currently%20busy%E2%80%9D%20while%20connecting%20to%20the%20WVD%20pool%E2%80%9D%3C%2FLI%3E%3CLI%3EThe%20error%20message%3A%20%E2%80%9COops%2C%20we%20couldn%E2%80%99t%20connect%20to%26nbsp%3B%20%E2%80%9CMyPC-E3%E2%80%9D%20we%20could%20not%20connect%20to%20the%20gateway%20because%20of%20an%20error%E2%80%9D%20while%20connecting%20to%20the%20WVD%20pool%E2%80%9D%3C%2FLI%3E%3CLI%3EThe%20error%20message%3A%20%E2%80%9CWe%20couldn%E2%80%99t%20connect%20to%20the%20Remote%20Desktop%20Gateway%20because%20of%20an%20orchestration%20error%E2%80%9D%3C%2FLI%3E%3C%2FUL%3E%3C%2FOL%3E%3CP%3ETo%20add%20a%20little%20bit%20more%20on%20this%2C%20we%20have%20found%20that%20every%20time%20that%20the%20users%20are%20getting%20these%20errors%2C%20some%20of%20the%20WVD%20hosts%20in%20an%20RDP%20session%20with%20the%20local%20administrator%20account%20are%20showing%20a%20black%20screen%20and%20the%20only%20way%20to%20fix%20it%20is%20by%20restarting%20the%20PC.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20current%20WVD%20host%20pool%20has%208%20PCs%2C%26nbsp%3B%204%20are%20Windows%2010%20Enterprise%20version%201809%20and%204%20are%20Windows%2010%20Enterprise%20version%201903.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFeel%20free%20to%20ask%20any%20minor%20details%20that%20could%20be%20relevant%20for%20a%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-955966%22%20slang%3D%22en-US%22%3ERe%3A%20The%20task%20you%20are%20trying%20to%20do%20can%E2%80%99t%20be%20completed%20because%20Remote%20Desktop%20Services%20is%20currently%20bu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-955966%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F414281%22%20target%3D%22_blank%22%3E%40Daghoberto%3C%2FA%3E%3AThank%20you%20for%20reaching%20out%20for%20those%20issues.%20I%20recommend%20to%20file%20a%20support%20request%20as%20those%20issues%20might%20have%20different%20root%20causes.%20Additional%20logs%20will%20help%20to%20pin%20down%20those%20issues.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1094945%22%20slang%3D%22en-US%22%3ERe%3A%20The%20task%20you%20are%20trying%20to%20do%20can%E2%80%99t%20be%20completed%20because%20Remote%20Desktop%20Services%20is%20currently%20bu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1094945%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F414281%22%20target%3D%22_blank%22%3E%40Daghoberto%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20was%20the%20fix%20in%20your%20case%3F%20I%20have%20a%20different%20setup%20but%20I'm%20also%20receiving%20the%20same%20message%20periodically.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1095026%22%20slang%3D%22en-US%22%3ERe%3A%20The%20task%20you%20are%20trying%20to%20do%20can%E2%80%99t%20be%20completed%20because%20Remote%20Desktop%20Services%20is%20currently%20bu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1095026%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F599%22%20target%3D%22_blank%22%3E%40Chris%20Parker%3C%2FA%3E%26nbsp%3B%20Yes%2C%20I%20was%20able%20to%20fix%20it%20by%20having%20a%20different%20svchost.exe%20process%20for%20each%20process.%3C%2FP%3E%3CP%3EThe%20problem%20is%20bisrv%20(BrokerInfrastructure)%20is%20receiving%20a%20large%20number%20of%20events%20using%20threadpool%20threads%20and%20then%20it%20is%20sending%20a%20ALPC%20request%20(which%20again%20uses%20thread%20pool%20threads)%20to%20SystemEventBroker%20Service%20which%20is%20running%20in%20same%20SVCHost.%20This%20caused%20thread%20pool%20exhaustion.%20Since%20thread%20pool%20threads%20are%20exhausted%2C%20we%20can%20no%20longer%20process%20requests%20resulting%20in%20hang.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20do%20have%20a%20workaround%20for%20the%20issue%2C%20run%20SystemEventsBroker%20or%20BrokerInfrastructure%20service%20into%20its%20own%20host%20process.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAction%20Plan%3A%20Perform%20following%20on%20all%20WVD%20computers%3C%2FP%3E%3COL%3E%3CLI%3ERDP%20into%20the%20computer%20with%20admin%20account%20-%26gt%3B%20Start%20Regedit%3C%2FLI%3E%3CLI%3ENavigate%20to%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CServices%5CSystemEventsBroker%5C%20and%20change%20the%20value%20of%20the%20key%20%E2%80%9CType%E2%80%9D%20to%2016%20(decimal)%20(or%200x10%20hex)%3C%2FLI%3E%3CLI%3ENavigate%20to%20HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CServices%5CBrokerInfrastructure%5C%20and%20change%20the%20value%20of%20the%20key%20%E2%80%9CType%E2%80%9D%20to%2016%20(decimal)%20(or%200x10%20hex)%3C%2FLI%3E%3CLI%3EReboot%20the%20machine%3C%2FLI%3E%3CLI%3ELog%20into%20the%20VM%20again%20-%26gt%3B%20open%20command%20prompt%20as%20administrator%20and%20enter%20command%20tasklist%20%2Fsvc%20%26gt%3B%20c%3A%5Ctasklist.txt%3C%2FLI%3E%3CLI%3EOpen%20tasklist.txt%20and%20verify%20SystemEventsBroker%20or%20BrokerInfrastructure%20are%20in%20own%20svchost%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164121i566F542F93304985%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E7.%20Monitor%20and%20let%20me%20know%20if%20the%20issue%20resurfaces%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1105782%22%20slang%3D%22en-US%22%3ERe%3A%20The%20task%20you%20are%20trying%20to%20do%20can%E2%80%99t%20be%20completed%20because%20Remote%20Desktop%20Services%20is%20currently%20bu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1105782%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F414281%22%20target%3D%22_blank%22%3E%40Daghoberto%3C%2FA%3E%26nbsp%3BMuch%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1110203%22%20slang%3D%22en-US%22%3ERe%3A%20The%20task%20you%20are%20trying%20to%20do%20can%E2%80%99t%20be%20completed%20because%20Remote%20Desktop%20Services%20is%20currently%20bu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1110203%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F599%22%20target%3D%22_blank%22%3E%40Chris%20Parker%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EHi%20Chris%2C%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20is%20this%20fix%20working%20out%20for%20you%3F%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20encountered%20similar%20issues%20for%20one%20user%20in%20our%20multi-session%20environment%20today%20and%20I%20can't%20reboot%20the%20machines%20just%20yet.%3CBR%20%2F%3E%3CBR%20%2F%3ERDP'ing%20to%20the%20session%20hosts%20directly%20works%20but%20just%20cannot%20connect%20via%20the%20WVD%20client.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Daghoberto
New Contributor

We have a WVD deployment and we have faced some issues with WVD, here you have the list of our current pain points:

 

  1. Users are getting this error messages while trying to access WVD through the Remote Desktop App or through the Web
    • The error message: “The task you are trying to do can’t be completed because Remote Desktop Services is currently busy” while connecting to the WVD pool”
    • The error message: “Oops, we couldn’t connect to  “MyPC-E3” we could not connect to the gateway because of an error” while connecting to the WVD pool”
    • The error message: “We couldn’t connect to the Remote Desktop Gateway because of an orchestration error”

To add a little bit more on this, we have found that every time that the users are getting these errors, some of the WVD hosts in an RDP session with the local administrator account are showing a black screen and the only way to fix it is by restarting the PC.

 

Our current WVD host pool has 8 PCs,  4 are Windows 10 Enterprise version 1809 and 4 are Windows 10 Enterprise version 1903.

 

Feel free to ask any minor details that could be relevant for a solution.

5 Replies
Solution

@Daghoberto:Thank you for reaching out for those issues. I recommend to file a support request as those issues might have different root causes. Additional logs will help to pin down those issues.

@Daghoberto 

 

What was the fix in your case? I have a different setup but I'm also receiving the same message periodically.

@Chris Parker  Yes, I was able to fix it by having a different svchost.exe process for each process.

The problem is bisrv (BrokerInfrastructure) is receiving a large number of events using threadpool threads and then it is sending a ALPC request (which again uses thread pool threads) to SystemEventBroker Service which is running in same SVCHost. This caused thread pool exhaustion. Since thread pool threads are exhausted, we can no longer process requests resulting in hang.

 

We do have a workaround for the issue, run SystemEventsBroker or BrokerInfrastructure service into its own host process.

 

Action Plan: Perform following on all WVD computers

  1. RDP into the computer with admin account -> Start Regedit
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SystemEventsBroker\ and change the value of the key “Type” to 16 (decimal) (or 0x10 hex)
  3. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BrokerInfrastructure\ and change the value of the key “Type” to 16 (decimal) (or 0x10 hex)
  4. Reboot the machine
  5. Log into the VM again -> open command prompt as administrator and enter command tasklist /svc > c:\tasklist.txt
  6. Open tasklist.txt and verify SystemEventsBroker or BrokerInfrastructure are in own svchost

clipboard_image_0.png

7. Monitor and let me know if the issue resurfaces

@Chris Parker 

Hi Chris,

How is this fix working out for you?

I've encountered similar issues for one user in our multi-session environment today and I can't reboot the machines just yet.

RDP'ing to the session hosts directly works but just cannot connect via the WVD client.

Related Conversations
Overdue task reminder workflow error
Ádám Lukács in SharePoint on
5 Replies
Add App pinning to Windows 10
HotCakeX in Windows Insider Program on
0 Replies
A problem with the Zoom level of a Tab
Tavory in Discussions on
9 Replies