

Look for an entry similar to the one below.This is typically located in the C:\inetpub\wwwroot\Citrix\storenameWeb\ directory, where storename is the name specified for the store. Use a text editor to open the web.config file for Receiver for Web.Search for "pluginassistant" and change the line item for pluginassistant enabled to false. TASKKILL.EXE /FI “USERNAME eq %username%” /IM wfshell.exe /T /Fįorce logoff for the hung sessions (wfshell.Use a text editor to open the web.config file for Receiver for Web. Resolution: GPO – Logoff Script (enhanced) Unfortunately, the script killed all sessions on the VDI/RDSH whenever a domain admin logged off their session.

It was working pretty well and we saw no hung sessions. User Configuration -> Windows Settings -> Scripts (Logon/Logoff).

Refer to: Citrix logoff hangs – wfshell.exe This is how this issue was resolved issue in our XenDesktop environment (7.13) At this stage, the user can launch a Desktop from receiver and it should connect to a different desktop hosting machine in the pool without any fuss. This has set the affected users broken session as hidden. Now, run Get-BrokerSession -username DOMAIN\affectedUsername and you can see the Hidden flag will now be set to True. Run command Get-BrokerSession -username DOMAIN\affectedUsername | Set-BrokerSession -hidden $true Within Citrix Studio, launch PowerShell or add the 2 module to your PowerShell session. Running this PowerShell command, you will have the affected user up and running quickly and you can worry about draining and restarting the server at a more convenient time or without as much urgency.
