Desktop Studio console does not display the current user in the active XenDesktop session. Similarly, PowerShell cmdlet Get-BrokerDesktop does not have entries for SessionUserName and SessionUserSID. In this situation, the user disconnected from the existing XenDesktop session cannot reconnect to the existing XenDesktop session.
Desktop Studio console on Desktop Delivery Controller (Controller):
Get-BrokerDesktop Result:
PS C:\> get-brokerdesktop -DNSName winxpk.joeiii.ctx
….. LaunchedViaHostName : XD5DDC.joeIII.ctx LaunchedViaIP : 192.168.200.20 LicenseId : F3BC5534 MachineName : JOEIII\WINXPK MachineUid 3 OSType Windows XP Service Pack 3 OSVersion : 5.1.2600.196608 PowerActionPending False PowerState On Protocol HDX PublishedApplications : {} PublishedName : RegistrationState : Registered SID : S-1-5-21-2219640574-753699312-2712279717-1111 SecureIcaActive : False SecureIcaRequired : SessionId : 0 SessionState Active SessionStateChangeTime 3/03/2011 9:56:17 AM SessionUid 7 SessionUserName : SessionUserSID : SmartAccessTags : StartTime : 3/03/2011 9:56:11 AM SummaryState InUse …..
Solution 1
Check the GPO setting – Do not process the legacy run list and change the setting to Not Configured or Disabled using Group Policy Object Editor. It is located in Computer Configuration\Administrative Template\System\Logon and User Configuration\Administrative Template\System\Logon.
Notes:
Because the setting can be enabled in both Computer Configuration and User Configuration, Computer Configuration takes precedence over the policy setting in User Configuration.
Because of the possibility of multiple GPOs applied to the Active Directory Organizational Unit containing the Virtual Delivery Agent, you must carefully investigate how many GPOs are applied to the Organizational Unit and which GPO is actually blocking the Citrix Session Helper from running.
This is caused by one of the Group Policy Object settings - Do not process the legacy run list is enabled. This setting prevents Citrix Session Helper (ctxidhlp.exe, located in HKLM\Software\Microsoft\Windows\CurrrentVersion\Run on the Virtual Delivery Agent) from running within the XenDesktop session. The Controller relies on this process to run within a XenDesktop session as a trustworthy source of vital user information. Without this information, the Controller cannot broker the re-connection to a disconnected session.
Other cause could be the sysprep process running upon VDA restart due to incomplete master image preparation. This can be verified using Procmon Boot Time Log.