WEM Agent hung sporadically by logon on “application processing”

WEM Agent 1906 sporadically hung after few logins at “application processing”. just logoff and logon helps. Client OS: Citrix Virtual Apps Server with Windows Server 2016 (latest Updates)

Error Message in the Event Log:

Error while Configuring Registry Security for DOMAINtest1

Source: Norskale Agent Service Event ID: 0 2. Event Log one or all of the identity references could not be translated. Source: Norskale Agent Service Event ID: 0 Latest Citrix WEM Agent Log 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Registry Entry -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15EXCEL.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Xml Value -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15EXCEL.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Ini Value -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15EXCEL.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing Simple String Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15EXCEL.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing Split Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15EXCEL.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing String Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15EXCEL.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing SubString Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15EXCEL.EXE 17:56:55 Event -> VuemApplicationExecutor.ProcessVuemAppAutoLaunch() : Application -> MS Onenote (Id:17) -> AutoLaunch Disabled : Exiting 17:56:55 Event -> VuemApplicationExecutor.CreateDesktopShortcut() : Application -> MS Outlook (Id:13) -> Processing Desktop Shortcut… 17:56:55 Event -> VuemApplicationExecutor.CreateDesktopShortcut() : Application -> MS Word (Id:14) -> Processing Desktop Shortcut… 17:56:55 Event -> VuemApplicationExecutor.ProcessVuemAppAutoLaunch() : Application -> MS PowerPoint (Id:20056) -> AutoLaunch Disabled : Exiting 17:56:55 Event -> VuemApplicationExecutor.CreateDesktopShortcut() : Application -> MS Outlook (Id:13) -> Saving Desktop Shortcut… 17:56:55 Event -> VuemApplicationExecutor.DoPinToTaskBar() : Application -> MS Excel (Id:15) -> Processing TaskBar Pinned Shortcut… 17:56:55 Event -> VuemApplicationExecutor.SaveShortcut() : Working Directory: C:Program Files (x86)Microsoft OfficeOffice15 Target: C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE Arguments: 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing HashTags -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing User Attributes -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing Printer Attributes -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> VuemApplicationExecutor.CreateDesktopShortcut() : Application -> MS Word (Id:14) -> Saving Desktop Shortcut… 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing User Parent OU -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Registry Entry -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Xml Value -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Ini Value -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing Simple String Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing Split Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing String Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing SubString Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15OUTLOOK.EXE 17:56:55 Event -> VuemApplicationExecutor.SaveShortcut() : Working Directory: C:Program Files (x86)Microsoft OfficeOffice15 Target: C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE Arguments: 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing HashTags -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing User Attributes -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing Printer Attributes -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> VuemApplicationExecutor.DoPinToTaskBar() : Application -> MS Outlook (Id:13) -> Processing TaskBar Pinned Shortcut… 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing User Parent OU -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Registry Entry -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Xml Value -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing with Ini Value -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing Simple String Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing Split Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing String Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> DynamicTokensController.ReplaceDynamicTokens() : Replacing SubString Operations -> no match found for : C:Program Files (x86)Microsoft OfficeOffice15WINWORD.EXE 17:56:55 Event -> VuemApplicationExecutor.DoPinToTaskBar() : Application -> MS Word (Id:14) -> Processing TaskBar

Related:

  • No Related Posts

Supported Databases for Virtual Apps and Desktops (XenApp & XenDesktop) AND Provisioning (Provisioning Services)

Citrix is committed to ensuring that our products function with the latest Microsoft SQL databases. Citrix supplies reasonable efforts to ensure compatibility with upcoming database releases. New versions of supported databases released after our products have been released, must work. However, Citrix recommends creating a test environment to ensure there are no unforeseen issues related to changes made to the new version or update of the third-party product. Individuals wishing to use the new release with current Citrix products must perform their own testing before using the platform. Citrix does not support any BETA versions of third-party products.

Note:

  • This document will be updated periodically as new information becomes available.
  • The Cumulative Updates for SQL versions are not called out explicitly. They are an extension of the product and supported.

What has changed from the last release of the matrix

  • Updated support for Virtual Apps and Desktops 7 1912 LTSR
Supported Databases Virtual Apps and Desktops (XenApp/XenDesktop) 7.15 LTSR / 1909 / 1912 LTSR XenApp/XenDesktop 7.6 LTSR Provisioning Services 7.15 LTSR / 1909 / 1912 LTSR Provisioning Services 7.6 LTSR XenApp 6.5 HRP07
SQL 2017
x64 Yes Yes Yes (1) Yes (1) Yes
Express Yes Yes Yes (1) Yes (1) Yes
SQL 2016 SP1, SP2
x64 Yes Yes Yes (1) Yes (1) Yes
Express Yes Yes Yes (1) Yes (1) Yes
SQL 2014 SP1, SP2, SP3
x86 Yes Yes Yes (1) Yes (1) Yes
x64 Yes Yes Yes (1) Yes (1) Yes
Express Yes Yes Yes Yes Yes
SQL 2012 SP1, SP2, SP3, SP4
x86 Yes Yes Yes (1) Yes (1) Yes
x64 Yes Yes Yes (1) Yes (1) Yes
Express Yes Yes Yes Yes Yes
SQL 2012
x86 Yes Yes Yes (1) Yes (1) Yes
x64 Yes Yes Yes (1) Yes (1) Yes
Express Yes (2) Yes (2) Yes Yes Yes
SQL 2008 R2 SP2, SP3
x86 Yes Yes Yes Yes Yes
x64 Yes Yes Yes Yes Yes
Express Yes Yes Yes Yes Yes

  1. PVS 7.7 onwards Always ON is supported. PVS 7.11 introduced Multi-subnet Failover
  2. Known issue using SQL 2012 and above with XenDesktop, Refer to article ‘CTX132438 – Unable to Create New XenDesktop Site Using SQL 2012 Server’

Note:

  • The x86 and x64 versions of SQL (version 2012 and later) have been validated with Always On, Clustered, Standalone and Mirrored modes.
  • The Express edition has been validated only as Standalone.

Related:

  • No Related Posts

Local Monitors are not Blanked when Connecting via ICA to Remote PC with AMD GPU

Add the following registry value to the Remote PC VDA 7.16 and above:

Key:

HKEY_LOCAL_MACHINESoftwareCitrixGraphicsAdapterMerits

Value:

Name: CitrixIDD

Type: DWORD

Data: 3

This forces the Citrix Graphics stack to use the Citrix Indirect Display Driver instead of the AMD GPU for remote sessions.

The Indirect Display Driver is not present on VDA 7.15, so users will need to upgrade to a current release to benefit from this.

Related:

  • No Related Posts

Unable to add Virtual machines to the catalog using Studio, with error – 'System.OutOfMemoryException'

Citrix Studio uses PowerShell commandlets to do this operation. This issue is seen when the PowerShell is running out of Memory while executing the Commandlets specified by Citrix Studio.

To check the current memory allocated to PowerShell, please run the below commandlet as administrator:

PS C:WINDOWSsystem32> cd wsman:

PS WSMan:> cd .localhostShell

PS WSMan:localhostShell> dir

The default output should look like below:

Type Name SourceOfValue Value

—- —- ————- —–

System.String AllowRemoteShellAccess true

System.String IdleTimeout 7200000

System.String MaxConcurrentUsers 2147483647

System.String MaxShellRunTime 2147483647

System.String MaxProcessesPerShell 2147483647


System.String MaxMemoryPerShellMB 2147483647

System.String MaxShellsPerUser 2147483647

This issue is seen if the above highlighted Value is set too low and is insufficient.

Related:

  • No Related Posts

Citrix VDI Desktop Viewer 'No Device' for USB

When using Citrix XenDesktop 7.5 for VDI and Windows7 physical machine and connect to VDI Win7 PC the user attempts to use the Desktop Viewer bar and select ‘Devices’. This says ‘No Devices’ and it doesn’t see any USB devices.

A thin client which the same Citrix Policies apply to and this works with USB, users can’t currently find what they are missing from their settings. The device being used is Kingston Data Traveler 2.0.

Related:

  • No Related Posts

How to Configure “TreatAsApp” in XenDesktop 7.8 and 7.15

Because of the change in architecture, in Xendesktop delivery groups we have to make changes in the Desktop tab and in 7.6 we need to make changes in User Settings.

If Keywords:TreatAsApp is not used:

Then also we can achieve same thing using command line

=================================================

use commandline on the StoreFront ​

1. asnp Citrix*

2. & “C:Program FilesCitrixReceiver StoreFrontScriptsImportModules.ps1”

3. Set-EnhancedEnumerationOptions -siteId 1 -storeVirtualPath /Citrix/Store -treatDesktopsAsApps $true

Explanation

1. Creation of Delivery Group:

created a delivery group here:


User-added image

Edited Desktop:

User-added image

User-added image

Browsed Site:

User-added image
If we set “TreatAsApp” in keyword, it will get our desktop in Apps tab. However to removed “Desktop” field we need to make changes in storefront:

Now, to set from Storefront 3.5

User-added image

User-added image

User-added image

In StoreFront 3.5 this is added in GUI, however earlier we used to do same by editing the config file:

This is configurable via web.config under the Receiver for Web site, normallyC:inetpubwwwrootCitrixStoreWeb. Open this file in your favorite text editor and locate the following segment:

<uiViews showDesktopsView=”true” showAppsView=”true”

defaultView=”desktops” />

Change the value of defaultView to be apps:

<uiViews showDesktopsView=”true” showAppsView=”true”

defaultView=”apps” />


Difference between XD 7.8 and XD 7.6:

XenDesktop 7.8:

User-added image
User Settings: is only for Administrator:

User-added image

XenDesktop 7.6:

In Server OS delivery Group:

User-added image
In Desktop OS delivery group:

User-added image

So because of this change in architecture, in XenDesktop delivery groups we have to make changes in the Desktop tab in 7.8 and in 7.6 we need to make changes in User Settings.


If Keyword:TreatAsApp is not used: Then also we can achieve same thing

==========================================================

use commandline on the storefront

1. asnp Citrix*

2. & “C:Program FilesCitrixReceiver StoreFrontScriptsImportModules.ps1”

3. Set-EnhancedEnumerationOptions -siteId 1 -storeVirtualPath /Citrix/Store

-treatDesktopsAsApps $true

Related:

  • No Related Posts

Running any CVAD Powershell command results in message ” Insufficient administrative privilege”

A CDF Trace taken at the time of the error will show the following.



17:44:07:04172,11024,8976,1,DelegatedAdminFiltering,,0,,1,Error,”CommonGetLogic: Unexpected exception System.SystemException: The trust relationship between the primary domain and the trusted domain failed.



at System.Security.Principal.SecurityIdentifier.TranslateToNTAccounts(IdentityReferenceCollection sourceSids, Boolean& someFailed)

at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)

at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)

at Citrix.Fma.Sdk.Win32NTAccountSidFactory.Win32IdentityReference.Translate(Type targetType)

at Citrix.DelegatedAdmin.Logic.SidHelper.ConvertSidToName(String sid)

at Citrix.DelegatedAdmin.Logic.SidHelper.ConvertAdministratorSidsToNames(IEnumerable`1 objects)

at Citrix.DelegatedAdmin.Logic.DelegatedAdminDal.CommonGetLogicDispatcher(String operationName, IDictionary`2 arguments, String groupByProperty, Guid[] gettableScopeIds, Int32 skip, Int32 maximumResultCount, Boolean returnTotalAvailableResultCount, Int32& totalAvailableResultCount, Object[]& records)

at Citrix.Fma.Sdk.ServiceCore.CommonCmdlets.CommonCmdletsDal.CommonGetLogic(String operationName, IDictionary`2 arguments, String groupByProperty, Guid[] gettableScopeIds, Int32 skip, Int32 maximumResultCount, Boolean returnTotalAvailableResultCount, Int32& totalAvailableResultCount, Object[]& records)”,””

285,1,2019/11/04 17:44:07:04518,11024,8976,1,DelegatedAdminLog,,0,,1,Error,”Converting to a return code, an exception of type: System.SystemException and message: The trust relationship between the primary domain and the trusted domain failed.

.”,””

286,1,2019/11/04 17:44:07:04521,11024,8976,1,DelegatedAdminLog,,0,,1,Error,”The exception name is SystemException”,””

287,1,2019/11/04 17:44:07:04530,11024,8976,1,DelegatedAdminLog,,0,,1,Information,”Failed with unexpected exception: System.SystemException: The trust relationship between the primary domain and the trusted domain failed.



On the SQL site database observe the DAS.Administrators table.

This will list all the administrators added in Studio.



One of these will have a faulty SID and it will cause logons to fails for any administrator – even an administrator with a correct SID.



To find the faulty account test each SID with below PS commands which will attempt to translate the SID to a username.

At least of these will fail with the same error as seen in the CDFTrace.



e.g



PS C:UsersAdministrator.BRIANMC> $sid=”S-1-5-21-1134881016-329966098-1620257386-500″

PS C:UsersAdministrator.BRIANMC> $securityId = New-Object System.Security.Principal.SecurityIdentifier($sid)

PS C:UsersAdministrator.BRIANMC> $securityId.Translate([System.Security.Principal.NTAccount])

Exception calling “Translate” with “1” argument(s): “The trust relationship between the primary domain and the trusted

domain failed.



At line:1 char:1

+ $securityId.Translate([System.Security.Principal.NTAccount])

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException

+ FullyQualifiedErrorId : SystemException





Then delete the faulty SID(s) only.

e.g.


delete FROM [CitrixBrianmc-LTSRSite].[DAS].[Administrators] where id=2

Do not delete all SIDs ,otherwise there will be no more administrators and nobody will be able to connect to Studio.

Then attempt to logon via Studio again .

Note – Before running any SQL command to modify the database ensure that a backup is taken of the CVAD site database.

Related:

  • No Related Posts

XenDesktop 7.18: New machine catalog creation fails with error 'Logging error'

In XenDesktop 7.18, new MCS catalog creation may fail with the error ‘Logging error’ as shown in the screenshot below –

User-added image
Clicking on view details presents with verbose error as shown below –

Error Id: XDDS:CA90918F

Exception:

Citrix.Console.Models.Exceptions.ScriptException Logging error. Contact Citrix Support.

at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.CreateException[T](ICommonLog logger, ExecutionResults`1 results, ICmdletExecutionHost host)

at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.Execute[T](ISdkCmdlet`1 sdkCmd, ICmdletExecutionHost host, Boolean allowFailover)

at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.IdentityPoolCreationTask.CreateIdentityPoolName(IdentityPoolModel identityPoolProperties)

at Citrix.Console.PowerShellSdk.BackgroundTaskService.BackgroundTask.Task.Run()

DesktopStudio_ErrorId : ConfigurationLoggingError

Exception : Citrix.ConfigurationLogging.Client.ConfigurationLoggingException: Failed to log low level operation start —> System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)

at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)

at System.String.Format(IFormatProvider provider, String format, Object[] args)

at Citrix.ConfigurationLogging.Client.LowLevelOperationScope.StartLowLevelOperation(LowLevelOperationInfo operationInfo)

at Citrix.ConfigurationLogging.Client.LowLevelOperationScope.StartOperation()

— End of inner exception stack trace —

at Citrix.ConfigurationLogging.Client.LowLevelOperationScope.StartOperation()

at Citrix.ConfigurationLogging.Client.LoggingFactory.CreateLowLevelOperation(IConfigurationLoggingEndpoint loggingEndpoint, IWcfConnectionService wcfConnection, IResourcesService resources, LowLevelOperationInfo operationInfo, String source, String sourceSdk, ConfigurationLoggingSettings loggingSettings, Action`2 loggingErrorCallback, Boolean noStopOnDispose, Boolean logDetailsOnLowLevelStop)

at Citrix.ConfigurationLogging.Client.ConfigurationLoggingProvider.StartLoggableOperation(LowLevelOperationInfo operationInfo, Boolean noStopOnDispose)

at Citrix.ADIdentity.Logic.ADIdentityLogic.NewIdentityPoolParameterized(NewIdentityPoolParameters parameters, IdentityPool& identityPoolObject)

at Citrix.Fma.Sdk.ServiceCore.ServiceCore.CheckedCall[T](String name, Func`1 operation, Func`2 defaultValue, Enum code)

Reason : ConfigurationLoggingException

Message : Failed to log low level operation start

Sdk Error Message : The operation could not be performed because of a configuration logging error.

Sdk Error ID : Citrix.XDPowerShell.Status.ConfigurationLoggingError,Citrix.ADIdentity.Sdk.Commands.NewAcctIdentityPoolCommand

ErrorCategory : NotSpecified

DesktopStudio_PowerShellHistory : Create Machine Catalog ‘Test123456’

7/30/2018 3:30:00 PM

Related:

  • No Related Posts

VM's Power State Does Not Update And Shows As “Unknown” After vCenter Server Reboots

This is an issue with Citrix hypervisor communication library plugin since version Xenapp/XenDesktop version 7.16.

When vCenter server goes alive after reboot i.e “https://<vCenter FQDN>/sdk” becomes accessible, BrokerHostingPlugin still fails to login the vCenter server with exception “The session is not authenticated.”.

CDF Traces from Delivery Controller

,BrokerHostingPlugin,,0,,1,Information,”Attempting connection”,””

,BrokerHostingPlugin,,0,,1,Information,”***** Get Hypervisor Certificate for Connection to ‘https://<vCenter FQDN>/sdk​​​​​​​’ *****”,””

,BrokerHostingPlugin,,0,,1,Information,”Certificate is untrusted: False”,””

,BrokerHostingPlugin,,0,,1,Information,”Time elapsed to get the hypervisor certificate: xxms”,””

,BrokerHostingPlugin,,0,,1,Information,”***** Login Connection – 0 to ‘​​​​​​​https://<vCenter FQDN>/sdk’ as ‘#login_name#‘ *****”,””

,BrokerHostingPlugin,,0,,1,Information,”VMware plugin initialisation times: create service xms, content time xxxms, total xxxms”,””

,BrokerHostingPlugin,,0,,1,Information,”Connected to ‘VMware vCenter Server #vCenter version info#’“,””

,BrokerHostingPlugin,,0,,1,Error,”System.Web.Services.Protocols.SoapException: The session is not authenticated.

,BrokerHostingPlugin,,0,,1,Information,”Connection attempt threw exception System.Web.Services.Protocols.SoapException: The session is not authenticated.

,BrokerHostingPlugin,,0,,1,Information,”Connection is still down”,””

,BrokerHostingPlugin,,0,,1,Information,”Sleeping for 00:00:30 before trying to reconnect again”,””

Related:

  • No Related Posts