How to register the XenDesktop license service instance in a 5.x environment


  • Administrative rights to Desktop Delivery Controller (DDC)
  • Administrative rights to the License server
  • Basic knowledge of PowerShell


During troubleshooting or maintenance, the License service instance might become unregistered in the database.


Complete the following procedure on a DDC:

  • Open a PowerShell Prompt:
  • Load the Citrix Snap-ins: Type: Add-PSSnapin Citrix*
  • Enumerate the current info from your license serve replace<License_Server_FQDN> with the DNS name of your license server Type: $licins=Get-LicServiceInstance -AdminAddress <License_Server_FQDN> $licins.ServiceGroupName=”LIC”
    $licIns |Register-ConfigServiceInstance
  • To Verify, Type: Get-ConfigRegisteredServiceInstance -ServiceType “Lic”

Read more here on the Citrix knowledgebase.

Dedicated VM shuts down and remains powered off, even though logoff behavior “ShutdownDesktopsAfterUse” is set to false

Dedicated Virtual Machine shuts down and remains powered off, even though Logoff behavior ShutdownDesktopsAfterUse is set to false.


The problem occurs after updating the master image of a Dedicated type catalog using the PowerShell SDK commands listed under CTX129205 – How to Update the Master Image for Dedicated and Pooled Machine Types using PowerShell SDK Console.

Changes applied to the master image of a Dedicated Catalog should only affect new machines created from the image and those changes does not apply to the existing machines in that catalog.

The problem occurs because the update process assigns the new updated image to all the Virtual Machines in the catalog, marking the existing ones with the ImageOutOfDate flag. Once the flag is enabled for the Virtual Machine, it shuts down after logging off with the attempt to start to the newly assigned image. At this point, the flag is always enabled since Dedicated machines cannot change to a different image.

Resolution Continue reading “Dedicated VM shuts down and remains powered off, even though logoff behavior “ShutdownDesktopsAfterUse” is set to false”