Wednesday, 11 March 2015

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?)
 



No comments:

Post a Comment