Citrix COMException (0x80004005) Error HRESULT E_FAIL

When using Citrix XenApp 6.0 or 6.5 you may see the following error viewing a Load Balancing Policy's users tab.

System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.



When you execute the Get-XALoadBalancingPolicyFilter you get the following error



Get-XALoadBalancingPolicyFilter : Error resolving account
0X1/NT/DEMOXENAPP/S-1-5-21-1119390013-2107715993-1139858522-1118 (0x80130002)
At line:1 char:1
+ Get-XALoadBalancingPolicyFilter pol1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult: (System.Collecti...[System.String]:String) [Get-XALoadBalancingPolicyFilt
   er], CitrixException
    + FullyQualifiedErrorId : ResolveDNToAccountName,Citrix.XenApp.Commands.GetPolicyFilterCmdlet


This can occur if the user specified has been deleted and the user name cannot be resolved. Just click continue on the error message however valid account names may disappear. This is a poor solution compared to the typical Microsoft response which is to display unresolved account names in the list with a (?) question mark next to the account SID. You can then check the offending SID before removing it.


To ignore the warning in PowerShell use the –ErrorAction parameter however this could potentially lose information as unresolved account names will not be shown. There could perhaps be an account name that needs to be resolved from an externally trusted domain that cannot be contacted (perhaps?)
 



Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Enable function lock for F1-F12 on HP ZBook mobile workstations