Published Application Consistency

Currently, in my XenApp environment, we maintain nearly 300 published applications and desktops.  We also are adding 2 or 3 new applications a month.  Managing this many resources  is cumbersome especially when you rely on Session Sharing.  Session Sharing is described in the Citrix knowledge base article CTX159159 and basically causes all application launches to occur on the same XenApp server or within the same user session.  This provides a better experience for the user (since he does not have to wait for a new login to complete for every new application launched), in user management (since a user’s session is only on one XenApp server) and in user profile stability (since the user isn’t logged into multiple servers).

The main requirement for Session Sharing is to have the same application installed on all your servers.  The secondary requirements are less obvious, but listed in CTX159159.

They are:

  • Color depth
  • Screen Size
  • Access Control Filters (for SmartAccess)
  • Sound
  • Drive Mapping
  • Printer Mapping

The issue then becomes how does one review all their applications to determine that the above settings are consistent.  Pouring over the application properties in the AMC is a recipe for insanity (in my opinion).  In this post, will explore a couple of ways to ensure your applications settings are consistent.

Brute Force

The site provides a terrific resource to the French and international  Citrix community.  They have provided several terrific tools one of which is called XenApp App Manager.

CitrixTools.Net XenApp App Manager
CitrixTools.Net XenApp App Manager

With this tool you can apply a variety of application properties to as many or as few applications as you want, but this tool will not report on the current settings of your applications.  Also, this tool does not address Access Control Filters, Drive Mapping, or Printer Mapping.  So how do you gather this information?

PowerShell to the rescue

Citrix has fully embraced PowerShell (thankfully) with the development of Workflow Studio (version 2.0 was released this week).  At Synergy 2009, they also released a tech preview for a variety of XenApp PowerShell cmdlets (download the preview from this page).  These commands, while simple are very powerful and we can utilize one of them to output all the important settings necessary for consistent Session Sharing (see Brandon Shell’s excellent site about PowerShell and his post about these commands).

The following cmdlet will display all the application properties we need to check.

PS PoSh:\> get-help Get-XAApplicationReport


Gets detailed information for published applications.

Get-XAApplicationReport [-BrowserName] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Get-XAApplicationReport -InputObject <XAApplication[]> [-WhatIf] [-Confirm] [<CommonParameters>]

This cmdlet gets detailed information for published applications, including associations, such as servers, accounts, file types and icons.


For more information, type: "get-help Get-XAApplicationReport -detailed".
For technical information, type: "get-help Get-XAApplicationReport -full".

This command displays many properties, but to display the ones we are interested in for session sharing we’ll use the following command:

Get-XAApplicationReport * | select DisplayName, WindowType, ColorDepth, ConnectionsThroughAccessGatewayAllowed, OtherConnectionsAllowed, AccessSessionConditionsEnabled, AudioType, AudioRequired, SslConnectionEnabled, EncryptionLevel, EncryptionRequired, WaitOnPrinterCreation

Piping this command to format-table -wrap will ensure that all the data will display. After this, you can output to a text or spreadsheet file and compare all the properties to make sure they are consistent.


4 thoughts on “Published Application Consistency”

  1. […] Advertisement GA_googleAddAttr("AdOpt", "1"); GA_googleAddAttr("Origin", "other"); GA_googleAddAttr("theme_bg", "ffffff"); GA_googleAddAttr("theme_border", "eeeeee"); GA_googleAddAttr("theme_text", "555555"); GA_googleAddAttr("theme_link", "2970A6"); GA_googleAddAttr("theme_url", "c8c7c7"); GA_googleAddAttr("LangId", "1"); GA_googleAddAttr("Autotag", "technology"); GA_googleAddAttr("Tag", "citrix"); GA_googleFillSlot("wpcom_below_post"); Share this:TwitterFacebookLike this:LikeBe the first to like this post. Categories: Citrix Comments (0) Trackbacks (0) Leave a comment Trackback […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.