Quick Tip: Disable XenApp XenDesktop connection leasing


Now XenDesktop and XenApp 7.12 has landed in if you are upgrading your existing site you have a choice to make Connection Leasing or Local Host Cache (LHC). Whether to continue to use Connection Leasing or migrate across to the new version of the Local Host Cache (LHC) which is an updated form of the LHC that was present within XenApp 6.x.

Before you run the upgrade across the site its you’ll need to know the current state of your Connection Leasing feature. Mostly it will be enabled however if you wish to use LHC you will need to disable it before performing the upgrade.

If Connection Leasing is enabled during the upgrade 7.12 will continue to utilise Connection Leasing, however if it is disabled then the new LHC feature will be utilised.

Luckily this is easily discovered and configured through powershell. So logon to your controllers and open up powershell.

Add in the Citrix snap-ins by typing:

Add-pssnapin citrix*

Then type:


Citrix Connection Leasing

Now if the Connection Leasing feature is enabled type:

Set-BrokerSite -ConnectionLeasingEnabled $False

This will disable connection leasing and you may now upgrade to 7.12 and the LHC feature set.

Post upgrade you can also switch between Connection Leasing and LHC by using the below powershell command substituting true and false based upon which service you want enabled.

Set-BrokerSite -ConnectionLeasingEnabled $true -LocalHostCacheEnabled $false

See the Citrix documentation for details on XenApp and XenDesktop 7.12 implementation of LHC.

Author: Dale Scriven

Leave a Reply