Automation of a XenDesktop/XenApp deployment – Part 2


As I discussed during my previous blog there are many parts necessary for a fully functional Citrix XenDesktop / XenApp environment.  In this part of the series we are going to cover the Citrix Licensing server.

The blog will be shorter than the previous blog due to the fact that there is only one component to the Citrix Licensing server. However, we will also cover how to deal with a known issue during automation which is related to automation leaving the license location in the License server empty.

The command line switches for automation of the license component is again very straight forward.

XenDesktop/XenApp Licensing Server

Example – C:\{Location}\x64\XenDesktop Setup\XenDesktopServerSetup.exe /COMPONENTS LICENSESERVER /NOREBOOT /QUIET /CONFIGURE_FIREWALL

This will install the License Server portion of a XenDesktop/XenApp deployment silently and defer the reboot.  You can run this string as many times as you would like and the end result will be the same.

Based upon my experience with automation I have discovered a known issue which is that within the License Server configuration the location of the specified license file will be blank.  This can lead to issues with functionality.

Know Issue with unattended installation

We can automate address this issue through PowerShell.  Below I will outline how to do so.  The company that I work for make a software solution for managing your PowerShell solutions.  This will provide you with a centralized location for management of your scripts, and assist with WHEN the scripts will be executed.  Additionally, you can design your solution 1 time and utilizes the solution anywhere when deploying XenDesktop / XenApp.

  1. Stop the Citrix License Server service
    1. This is done through a net stop command
  2. Parse through the license server configuration xml file located at
    1. C:\Program Files (x86)\Citrix\Licensing\LS\conf\server.xml
    2. This can be done by piping the contents of the XML file into a variable
    3. $serverxml = [xml] (Get-Content -path “C:\Program Files (x86)\Citrix\Licensing\LS\conf\server.xml” )
    4. You have now captured the contents of the XML file
  3. Locate within the XML file where the license file is specified, under the following value and assign it to a variable
    1. $element = $serverxml.configuration.licenseServer.vendorDaemons.daemon
      1. Where-Object {$_.executable -eq “CITRIX”}
    2. Write the value of your licensing file into the XML file
      1. $element.license = “The location of your license file”
    3. Save the server.xml file
      1. $serverxml.Save
    4. Start the Citrix License Server service

 

Bonus points – You could also utilize this level of automation to quickly replace the licensing file within your deployment in an automated method vs. manually going through the License Server web interface.  IE – Whenever it would be time to change out your license file simply replace the file and run the script.

In my next article in the series we will be outlining the process for deployment of the Citrix Studio portion of your XenDesktop / XenApp.  If you have any tips or tricks that could be helpful.  Please share I would love to share ideas, and share any information you are aware with the rest of my readers.

Advertisements

Automation of a XenDesktop/XenApp deployment


There are many pieces involved in deploying Citrix XenDesktop/XenApp.  For simplification purposes while discussing automation, let’s focus on a single feature of a Citrix deployment- the Delivery Controller.

The Delivery Controller is responsible for delivery of either applications or desktops to end users.

The components of a Delivery Controller are:

  • Database – SQL – Pre-requisite
  • Application – Citrix Delivery Controller

Installing each of these components individually is straight forward.  The applications are packaged in such a way that you can utilize a few switches to install the software.

SQL

Example – C:\{Location}\setup.exe /QUIET /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=SQL,Tools /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT=”NT Authority\Network Service” /SQLSYSADMINACCOUNTS=domain.local\Administrator /AGTSVCACCOUNT=”NT Authority\Network Service”

This will install SQL on a Windows Server OS silently, and create a database named MSSQLSERVER.

The same can be done with the Delivery Controller.

XenDesktop/XenApp Delivery Controller

Example – C:\{Location}\x64\XenDesktop Setup\XenDesktopServerSetup.exe /PASSIVE /NOREBOOT /CONFIGURE_FIREWALL /COMPONENTS CONTROLLER /NOSQL

This will install the Delivery Controller portion of a XenDesktop/XenApp silently, deferring the reboot and not installing SQL. You can run this string as many times as you would like and the end result will be the same.

Now, let’s get fancy.

In order for the Delivery Controller to function a “Site” must be present.  A site contains all of the data necessary for a Delivery Controller to function, and is stored in your SQL database; this includes configuration and logging information.

A site is the first step necessary to deliver resources with Citrix for your end users.  With PowerShell you can configure this without user interaction, thus enabling you to automate the deployment process.

You will need 3 databases:

  • “Site”
  • “Configuration”
  • “Logging”

 

You can utilize PowerShell to create these with the “New-XDDatabase” command.  This is a function of the “Citrix.XenDesktop.Admin.V1” PowerShell snap-in.  This will enable you to create the three database necessary for a “Site” to function properly.  Once the databases are created, you can create your “Site”.

You can utilize PowerShell to create your “Site” with the “New-XDSite” command.  This is a function of the “Citrix.XenDesktop.Admin.V1” PowerShell snap-in as well.

XDDatabase

Combining packages from Microsoft, Citrix and PowerShell, you are able to automate the process of creating your first “Site” for a critical component of your Citrix deployment, the Delivery Controller.

There are many platforms for managing, and executing your collection of automation frameworks.  Some of the popular ones are Chef, Puppet and Login AM.  It creates a logical organization structure for doing so, variables necessary and provides an interface for management.

If you are interested in finding out more about this, please get in touch with me.

Also, if you have any neat tricks with PowerShell please share them in the comment section.  Happy automating.

I will be following this post up with articles about the remaining components of Citrix.

Article 2 in the series is now live! See it here – Automation of a XenDesktop/XenApp deployment – Part 2

Article 3 online – Automation of a XenDesktop / XenApp Deployment – Part 3

Stay-Tuned-button-1024x192

XenApp / XenDesktop 7.x – All the PowerShell cmdlets


Here is a dump of all that you can do via the PowerShell cmdlets in a XenApp /XenDesktop 7.x world. Note that the below has been taken from a XenApp 7.5 controller so there might be SDK updates in the newer releases.

Run the below command below in a PowerShell administrative window

Get-Command -Module citrix*

Output is below

CommandType     Name                                               ModuleName                                          
-----------     ----                                               ----------                                          
Cmdlet          Add-AcctADAccount                                  Citrix.AdIdentity.Admin.V2                          
Cmdlet          Add-AcctIdentityPoolScope                          Citrix.AdIdentity.Admin.V2                          
Cmdlet          Add-AdminPermission                                Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Add-AdminRight                                     Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Add-BrokerApplication                              Citrix.Broker.Admin.V2                              
Cmdlet          Add-BrokerDesktopGroup                             Citrix.Broker.Admin.V2                              
Cmdlet          Add-BrokerMachine                                  Citrix.Broker.Admin.V2                              
Cmdlet          Add-BrokerMachineConfiguration                     Citrix.Broker.Admin.V2                              
Cmdlet          Add-BrokerMachinesToDesktopGroup                   Citrix.Broker.Admin.V2                              
Cmdlet          Add-BrokerScope                                    Citrix.Broker.Admin.V2                              
Cmdlet          Add-BrokerTag                                      Citrix.Broker.Admin.V2                              
Cmdlet          Add-BrokerUser                                     Citrix.Broker.Admin.V2                              
Cmdlet          Add-ConfigRegisteredServiceInstanceMetadata        Citrix.Configuration.Admin.V2                       
Cmdlet          Add-ConfigServiceGroupMetadata                     Citrix.Configuration.Admin.V2                       
Cmdlet          Add-HypHostingUnitMetadata                         Citrix.Host.Admin.V2                                
Cmdlet          Add-HypHostingUnitNetwork                          Citrix.Host.Admin.V2                                
Cmdlet          Add-HypHostingUnitStorage                          Citrix.Host.Admin.V2                                
Cmdlet          Add-HypHypervisorConnectionAddress                 Citrix.Host.Admin.V2                                
Cmdlet          Add-HypHypervisorConnectionMetadata                Citrix.Host.Admin.V2                                
Cmdlet          Add-HypHypervisorConnectionScope                   Citrix.Host.Admin.V2                                
Cmdlet          Add-HypMetadata                                    Citrix.Host.Admin.V2                                
Cmdlet          Add-LicGlobalMetadata                              Citrix.Licensing.Admin.V1                           
Cmdlet          Add-ProvSchemeControllerAddress                    Citrix.MachineCreation.Admin.V2                     
Cmdlet          Add-ProvSchemeMetadata                             Citrix.MachineCreation.Admin.V2                     
Cmdlet          Add-ProvSchemeScope                                Citrix.MachineCreation.Admin.V2                     
Cmdlet          Add-ProvTaskMetadata                               Citrix.MachineCreation.Admin.V2                     
Cmdlet          Add-SfServerToCluster                              Citrix.Storefront.Admin.V1                          
Cmdlet          Add-SfStorefrontAddress                            Citrix.Storefront.Admin.V1                          
Cmdlet          Add-XDController                                   Citrix.XenDesktop.Admin                             
Cmdlet          Clear-CtxTraceSession                              Citrix.Common.Commands                              
Cmdlet          ConvertTo-CtxAppVLauncherArg                       Citrix.AppV.Admin.V1                                
Cmdlet          Copy-AcctIdentityPool                              Citrix.AdIdentity.Admin.V2                          
Cmdlet          Copy-CtxSystemInformation                          Citrix.Common.Commands                              
Cmdlet          Copy-CtxTraceLog                                   Citrix.Common.Commands                              
Cmdlet          Disconnect-BrokerSession                           Citrix.Broker.Admin.V2                              
Cmdlet          Export-BrokerDesktopPolicy                         Citrix.Broker.Admin.V2                              
Cmdlet          Export-ConfigFeatureTable                          Citrix.Configuration.Admin.V2                       
Cmdlet          Export-CtxGPTemplate                               Citrix.Common.GroupPolicy                           
Cmdlet          Export-LogReportCsv                                Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Export-LogReportHtml                               Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-AcctADAccount                                  Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctDBConnection                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctDBSchema                                   Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctDBVersionChangeScript                      Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctIdentityPool                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctInstalledDBVersion                         Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctScopedObject                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctService                                    Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctServiceAddedCapability                     Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctServiceInstance                            Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AcctServiceStatus                              Citrix.AdIdentity.Admin.V2                          
Cmdlet          Get-AdminAdministrator                             Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminDBConnection                              Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminDBSchema                                  Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminDBVersionChangeScript                     Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminEffectiveAdministrator                    Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminEffectiveRight                            Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminInstalledDBVersion                        Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminPermission                                Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminPermissionGroup                           Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminRevision                                  Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminRole                                      Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminRoleConfiguration                         Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminScope                                     Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminService                                   Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminServiceAddedCapability                    Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminServiceInstance                           Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-AdminServiceStatus                             Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Get-BrokerAccessPolicyRule                         Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerAppAssignmentPolicyRule                  Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerAppEntitlementPolicyRule                 Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerApplication                              Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerApplicationInstance                      Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerAssignmentPolicyRule                     Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerCatalog                                  Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerConfigurationSlot                        Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerConfiguredFTA                            Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerConnectionLog                            Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerController                               Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerDBConnection                             Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerDBSchema                                 Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerDBVersionChangeScript                    Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerDelayedHostingPowerAction                Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerDesktop                                  Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerDesktopGroup                             Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerDesktopUsage                             Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerEntitlementPolicyRule                    Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerHostingPowerAction                       Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerHypervisorAlert                          Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerHypervisorConnection                     Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerIcon                                     Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerImportedFTA                              Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerInstalledDbVersion                       Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerMachine                                  Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerMachineCommand                           Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerMachineConfiguration                     Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerMachineStartMenuShortcutIcon             Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerMachineStartMenuShortcuts                Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerPowerTimeScheme                          Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerPrivateDesktop                           Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerRebootCycle                              Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerRebootSchedule                           Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerRemotePCAccount                          Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerResource                                 Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerScopedObject                             Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerServiceAddedCapability                   Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerServiceInstance                          Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerServiceStatus                            Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerSession                                  Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerSharedDesktop                            Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerSite                                     Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerTag                                      Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerUnconfiguredMachine                      Citrix.Broker.Admin.V2                              
Cmdlet          Get-BrokerUser                                     Citrix.Broker.Admin.V2                              
Cmdlet          Get-ConfigDBConnection                             Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigDBSchema                                 Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigDBVersionChangeScript                    Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigEnabledFeature                           Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigInstalledDBVersion                       Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigLicensingModel                           Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigLocalData                                Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigProduct                                  Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigProductEdition                           Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigProductFeature                           Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigProductVersion                           Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigRegisteredServiceInstance                Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigService                                  Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigServiceAddedCapability                   Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigServiceGroup                             Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigServiceInstance                          Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigServiceStatus                            Citrix.Configuration.Admin.V2                       
Cmdlet          Get-ConfigSite                                     Citrix.Configuration.Admin.V2                       
Cmdlet          Get-CtxAppVApplication                             Citrix.AppV.Admin.V1                                
Cmdlet          Get-CtxAppVApplicationInfo                         Citrix.AppV.Admin.V1                                
Cmdlet          Get-CtxAppVServer                                  Citrix.AppV.Admin.V1                                
Cmdlet          Get-CtxAppVServerSetting                           Citrix.AppV.Admin.V1                                
Cmdlet          Get-CtxConfigurationLogReport                      Citrix.Common.Commands                              
Cmdlet          Get-CtxIcon                                        Citrix.Common.Commands                              
Cmdlet          Get-CtxProfileApplication                          Citrix.Common.Commands                              
Cmdlet          Get-CtxTraceProvider                               Citrix.Common.Commands                              
Cmdlet          Get-CtxTraceSession                                Citrix.Common.Commands                              
Cmdlet          Get-EnvTestConfiguration                           Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestDBConnection                            Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestDBSchema                                Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestDBVersionChangeScript                   Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestDefinition                              Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestInstalledDBVersion                      Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestService                                 Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestServiceAddedCapability                  Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestServiceInstance                         Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestServiceStatus                           Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestSuiteDefinition                         Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-EnvTestTask                                    Citrix.EnvTest.Admin.V1                             
Cmdlet          Get-HypConfigurationDataForItem                    Citrix.Host.Admin.V2                                
Cmdlet          Get-HypConfigurationObjectForItem                  Citrix.Host.Admin.V2                                
Cmdlet          Get-HypConnectionRegion                            Citrix.Host.Admin.V2                                
Cmdlet          Get-HypDBConnection                                Citrix.Host.Admin.V2                                
Cmdlet          Get-HypDBSchema                                    Citrix.Host.Admin.V2                                
Cmdlet          Get-HypDBVersionChangeScript                       Citrix.Host.Admin.V2                                
Cmdlet          Get-HypHypervisorPlugin                            Citrix.Host.Admin.V2                                
Cmdlet          Get-HypInstalledDBVersion                          Citrix.Host.Admin.V2                                
Cmdlet          Get-HypScopedObject                                Citrix.Host.Admin.V2                                
Cmdlet          Get-HypService                                     Citrix.Host.Admin.V2                                
Cmdlet          Get-HypServiceAddedCapability                      Citrix.Host.Admin.V2                                
Cmdlet          Get-HypServiceInstance                             Citrix.Host.Admin.V2                                
Cmdlet          Get-HypServiceStatus                               Citrix.Host.Admin.V2                                
Cmdlet          Get-HypVMMacAddress                                Citrix.Host.Admin.V2                                
Cmdlet          Get-HypVolumeServiceConfiguration                  Citrix.Host.Admin.V2                                
Cmdlet          Get-HypXenServerAddress                            Citrix.Host.Admin.V2                                
Cmdlet          Get-LicAdministrator                               Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicCertificate                                 Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicEffectivePermission                         Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicEntitlements                                Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicGlobalMetadata                              Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicInventory                                   Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicLACEnabledState                             Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicLACLocation                                 Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicLocation                                    Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LicServerInfo                                  Citrix.Licensing.Admin.V1                           
Cmdlet          Get-LogDataStore                                   Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogDBConnection                                Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogDBSchema                                    Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogDBVersionChangeScript                       Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogHighLevelOperation                          Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogInstalledDBVersion                          Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogLowLevelOperation                           Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogService                                     Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogServiceAddedCapability                      Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogServiceInstance                             Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogServiceStatus                               Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogSite                                        Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-LogSummary                                     Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Get-MonitorConfiguration                           Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorDataStore                               Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorDBConnection                            Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorDBSchema                                Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorDBVersionChangeScript                   Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorInstalledDBVersion                      Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorService                                 Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorServiceAddedCapability                  Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorServiceInstance                         Citrix.Monitor.Admin.V1                             
Cmdlet          Get-MonitorServiceStatus                           Citrix.Monitor.Admin.V1                             
Cmdlet          Get-ProvDBConnection                               Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvDBSchema                                   Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvDBVersionChangeScript                      Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvInstalledDBVersion                         Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvObjectReference                            Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvScheme                                     Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvSchemeMasterVMImageHistory                 Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvScopedObject                               Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvService                                    Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvServiceAddedCapability                     Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvServiceConfigurationData                   Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvServiceInstance                            Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvServiceStatus                              Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvTask                                       Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-ProvVM                                         Citrix.MachineCreation.Admin.V2                     
Cmdlet          Get-SfCluster                                      Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfDBConnection                                 Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfDBSchema                                     Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfDBVersionChangeScript                        Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfInstalledDBVersion                           Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfIsStorefrontInstalled                        Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfService                                      Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfServiceAddedCapability                       Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfServiceInstance                              Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfServiceStatus                                Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfStorefrontAddress                            Citrix.Storefront.Admin.V1                          
Cmdlet          Get-SfTask                                         Citrix.Storefront.Admin.V1                          
Cmdlet          Get-UserProfileDefinition                          Citrix.UserProfileManager.Admin.V1                  
Cmdlet          Get-UserProfileManagerServiceAddedCapability       Citrix.UserProfileManager.Admin.V1                  
Cmdlet          Get-UserProfilePath                                Citrix.UserProfileManager.Admin.V1                  
Cmdlet          Get-XDDatabaseSchema                               Citrix.XenDesktop.Admin                             
Cmdlet          Get-XDLogging                                      Citrix.XenDesktop.Admin                             
Cmdlet          Get-XDMonitor                                      Citrix.XenDesktop.Admin                             
Cmdlet          Get-XDSite                                         Citrix.XenDesktop.Admin                             
Cmdlet          Grant-HypSecurityGroupEgress                       Citrix.Host.Admin.V2                                
Cmdlet          Grant-HypSecurityGroupIngress                      Citrix.Host.Admin.V2                                
Cmdlet          Group-BrokerDesktop                                Citrix.Broker.Admin.V2                              
Cmdlet          Group-BrokerMachine                                Citrix.Broker.Admin.V2                              
Cmdlet          Import-AdminRoleConfiguration                      Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Import-BrokerDesktopPolicy                         Citrix.Broker.Admin.V2                              
Cmdlet          Import-ConfigFeatureTable                          Citrix.Configuration.Admin.V2                       
Cmdlet          Import-CtxGPTemplate                               Citrix.Common.GroupPolicy                           
Cmdlet          Import-LicLicenseFile                              Citrix.Licensing.Admin.V1                           
Cmdlet          Lock-ProvVM                                        Citrix.MachineCreation.Admin.V2                     
Cmdlet          New-AcctADAccount                                  Citrix.AdIdentity.Admin.V2                          
Cmdlet          New-AcctIdentityPool                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          New-AdminAdministrator                             Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          New-AdminRole                                      Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          New-AdminScope                                     Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          New-BrokerAccessPolicyRule                         Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerAppAssignmentPolicyRule                  Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerAppEntitlementPolicyRule                 Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerApplication                              Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerAssignmentPolicyRule                     Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerCatalog                                  Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerConfigurationSlot                        Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerConfiguredFTA                            Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerDelayedHostingPowerAction                Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerDesktopGroup                             Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerEntitlementPolicyRule                    Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerHostingPowerAction                       Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerHypervisorConnection                     Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerIcon                                     Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerMachine                                  Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerMachineCommand                           Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerMachineConfiguration                     Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerPowerTimeScheme                          Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerRebootSchedule                           Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerRemotePCAccount                          Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerTag                                      Citrix.Broker.Admin.V2                              
Cmdlet          New-BrokerUser                                     Citrix.Broker.Admin.V2                              
Cmdlet          New-CtxAppVServer                                  Citrix.AppV.Admin.V1                                
Cmdlet          New-CtxInformationPackage                          Citrix.Common.Commands                              
Cmdlet          New-EnvTestDiscoveryTargetDefinition               Citrix.EnvTest.Admin.V1                             
Cmdlet          New-HypVMSnapshot                                  Citrix.Host.Admin.V2                                
Cmdlet          New-LicAdministrator                               Citrix.Licensing.Admin.V1                           
Cmdlet          New-LicAllocation                                  Citrix.Licensing.Admin.V1                           
Cmdlet          New-ProvScheme                                     Citrix.MachineCreation.Admin.V2                     
Cmdlet          New-ProvVM                                         Citrix.MachineCreation.Admin.V2                     
Cmdlet          New-SfCluster                                      Citrix.Storefront.Admin.V1                          
Cmdlet          New-SfStorefrontAddress                            Citrix.Storefront.Admin.V1                          
Cmdlet          New-UserProfileConfiguration                       Citrix.UserProfileManager.Admin.V1                  
Cmdlet          New-UserProfileShare                               Citrix.UserProfileManager.Admin.V1                  
Cmdlet          New-XDDatabase                                     Citrix.XenDesktop.Admin                             
Cmdlet          New-XDSite                                         Citrix.XenDesktop.Admin                             
Cmdlet          Publish-ProvMasterVmImage                          Citrix.MachineCreation.Admin.V2                     
Cmdlet          Register-ConfigServiceInstance                     Citrix.Configuration.Admin.V2                       
Cmdlet          Remove-AcctADAccount                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Remove-AcctIdentityPool                            Citrix.AdIdentity.Admin.V2                          
Cmdlet          Remove-AcctIdentityPoolMetadata                    Citrix.AdIdentity.Admin.V2                          
Cmdlet          Remove-AcctIdentityPoolScope                       Citrix.AdIdentity.Admin.V2                          
Cmdlet          Remove-AcctServiceMetadata                         Citrix.AdIdentity.Admin.V2                          
Cmdlet          Remove-AdminAdministrator                          Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-AdminAdministratorMetadata                  Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-AdminPermission                             Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-AdminRight                                  Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-AdminRole                                   Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-AdminRoleMetadata                           Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-AdminScope                                  Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-AdminScopeMetadata                          Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-AdminServiceMetadata                        Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Remove-BrokerAccessPolicyRule                      Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerAccessPolicyRuleMetadata              Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerAppAssignmentPolicyRule               Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerAppEntitlementPolicyRule              Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerApplication                           Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerApplicationInstanceMetadata           Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerApplicationMetadata                   Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerAssignmentPolicyRule                  Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerAssignmentPolicyRuleMetadata          Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerCatalog                               Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerCatalogMetadata                       Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerConfigurationSlot                     Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerConfigurationSlotMetadata             Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerConfiguredFTA                         Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerControllerMetadata                    Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerDelayedHostingPowerAction             Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerDesktopGroup                          Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerDesktopGroupMetadata                  Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerEntitlementPolicyRule                 Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerEntitlementPolicyRuleMetadata         Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerHostingPowerAction                    Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerHostingPowerActionMetadata            Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerHypervisorAlertMetadata               Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerHypervisorConnection                  Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerHypervisorConnectionMetadata          Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerIcon                                  Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerIconMetadata                          Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerImportedFTA                           Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerMachine                               Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerMachineCommand                        Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerMachineCommandMetadata                Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerMachineConfiguration                  Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerMachineConfigurationMetadata          Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerMachineMetadata                       Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerPowerTimeScheme                       Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerPowerTimeSchemeMetadata               Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerRebootCycleMetadata                   Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerRebootSchedule                        Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerRemotePCAccount                       Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerScope                                 Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerSessionMetadata                       Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerSiteMetadata                          Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerTag                                   Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerTagMetadata                           Citrix.Broker.Admin.V2                              
Cmdlet          Remove-BrokerUser                                  Citrix.Broker.Admin.V2                              
Cmdlet          Remove-ConfigRegisteredServiceInstanceMetadata     Citrix.Configuration.Admin.V2                       
Cmdlet          Remove-ConfigServiceGroup                          Citrix.Configuration.Admin.V2                       
Cmdlet          Remove-ConfigServiceGroupMetadata                  Citrix.Configuration.Admin.V2                       
Cmdlet          Remove-ConfigServiceMetadata                       Citrix.Configuration.Admin.V2                       
Cmdlet          Remove-ConfigSiteMetadata                          Citrix.Configuration.Admin.V2                       
Cmdlet          Remove-EnvTestServiceMetadata                      Citrix.EnvTest.Admin.V1                             
Cmdlet          Remove-EnvTestTask                                 Citrix.EnvTest.Admin.V1                             
Cmdlet          Remove-EnvTestTaskMetadata                         Citrix.EnvTest.Admin.V1                             
Cmdlet          Remove-HypHostingUnitMetadata                      Citrix.Host.Admin.V2                                
Cmdlet          Remove-HypHostingUnitNetwork                       Citrix.Host.Admin.V2                                
Cmdlet          Remove-HypHostingUnitStorage                       Citrix.Host.Admin.V2                                
Cmdlet          Remove-HypHypervisorConnectionAddress              Citrix.Host.Admin.V2                                
Cmdlet          Remove-HypHypervisorConnectionMetadata             Citrix.Host.Admin.V2                                
Cmdlet          Remove-HypHypervisorConnectionScope                Citrix.Host.Admin.V2                                
Cmdlet          Remove-HypMetadata                                 Citrix.Host.Admin.V2                                
Cmdlet          Remove-HypServiceMetadata                          Citrix.Host.Admin.V2                                
Cmdlet          Remove-LicAdministrator                            Citrix.Licensing.Admin.V1                           
Cmdlet          Remove-LicGlobalMetadata                           Citrix.Licensing.Admin.V1                           
Cmdlet          Remove-LogOperation                                Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Remove-LogServiceMetadata                          Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Remove-LogSiteMetadata                             Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Remove-MonitorServiceMetadata                      Citrix.Monitor.Admin.V1                             
Cmdlet          Remove-ProvScheme                                  Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvSchemeControllerAddress                 Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvSchemeMasterVMImageHistory              Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvSchemeMetadata                          Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvSchemeScope                             Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvServiceConfigurationData                Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvServiceMetadata                         Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvTask                                    Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvTaskMetadata                            Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-ProvVM                                      Citrix.MachineCreation.Admin.V2                     
Cmdlet          Remove-SfServerFromCluster                         Citrix.Storefront.Admin.V1                          
Cmdlet          Remove-SfServiceMetadata                           Citrix.Storefront.Admin.V1                          
Cmdlet          Remove-SfTask                                      Citrix.Storefront.Admin.V1                          
Cmdlet          Remove-SfTaskMetadata                              Citrix.Storefront.Admin.V1                          
Cmdlet          Remove-UserProfileShare                            Citrix.UserProfileManager.Admin.V1                  
Cmdlet          Remove-XDController                                Citrix.XenDesktop.Admin                             
Cmdlet          Remove-XDSite                                      Citrix.XenDesktop.Admin                             
Cmdlet          Rename-AcctIdentityPool                            Citrix.AdIdentity.Admin.V2                          
Cmdlet          Rename-AdminRole                                   Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Rename-AdminScope                                  Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Rename-BrokerAccessPolicyRule                      Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerAppAssignmentPolicyRule               Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerAppEntitlementPolicyRule              Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerApplication                           Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerAssignmentPolicyRule                  Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerCatalog                               Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerDesktopGroup                          Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerEntitlementPolicyRule                 Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerMachineConfiguration                  Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerPowerTimeScheme                       Citrix.Broker.Admin.V2                              
Cmdlet          Rename-BrokerTag                                   Citrix.Broker.Admin.V2                              
Cmdlet          Rename-ProvScheme                                  Citrix.MachineCreation.Admin.V2                     
Cmdlet          Repair-AcctADAccount                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Repair-UserProfileShare                            Citrix.UserProfileManager.Admin.V1                  
Cmdlet          Reset-AcctServiceGroupMembership                   Citrix.AdIdentity.Admin.V2                          
Cmdlet          Reset-AdminServiceGroupMembership                  Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Reset-BrokerLicensingConnection                    Citrix.Broker.Admin.V2                              
Cmdlet          Reset-BrokerServiceGroupMembership                 Citrix.Broker.Admin.V2                              
Cmdlet          Reset-ConfigServiceGroupMembership                 Citrix.Configuration.Admin.V2                       
Cmdlet          Reset-EnvTestServiceGroupMembership                Citrix.EnvTest.Admin.V1                             
Cmdlet          Reset-HypServiceGroupMembership                    Citrix.Host.Admin.V2                                
Cmdlet          Reset-LogDataStore                                 Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Reset-LogServiceGroupMembership                    Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Reset-MonitorDataStore                             Citrix.Monitor.Admin.V1                             
Cmdlet          Reset-MonitorServiceGroupMembership                Citrix.Monitor.Admin.V1                             
Cmdlet          Reset-ProvServiceGroupMembership                   Citrix.MachineCreation.Admin.V2                     
Cmdlet          Reset-SfServiceGroupMembership                     Citrix.Storefront.Admin.V1                          
Cmdlet          Revoke-HypSecurityGroupEgress                      Citrix.Host.Admin.V2                                
Cmdlet          Revoke-HypSecurityGroupIngress                     Citrix.Host.Admin.V2                                
Cmdlet          Send-BrokerSessionMessage                          Citrix.Broker.Admin.V2                              
Cmdlet          Set-AcctDBConnection                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Set-AcctIdentityPool                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Set-AcctIdentityPoolMetadata                       Citrix.AdIdentity.Admin.V2                          
Cmdlet          Set-AcctServiceMetadata                            Citrix.AdIdentity.Admin.V2                          
Cmdlet          Set-AdminAdministrator                             Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Set-AdminAdministratorMetadata                     Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Set-AdminDBConnection                              Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Set-AdminRole                                      Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Set-AdminRoleMetadata                              Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Set-AdminScope                                     Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Set-AdminScopeMetadata                             Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Set-AdminServiceMetadata                           Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Set-BrokerAccessPolicyRule                         Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerAccessPolicyRuleMetadata                 Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerAppAssignmentPolicyRule                  Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerAppEntitlementPolicyRule                 Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerApplication                              Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerApplicationInstanceMetadata              Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerApplicationMetadata                      Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerAssignmentPolicyRule                     Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerAssignmentPolicyRuleMetadata             Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerCatalog                                  Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerCatalogMetadata                          Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerConfigurationSlotMetadata                Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerControllerMetadata                       Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerDBConnection                             Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerDesktopGroup                             Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerDesktopGroupMetadata                     Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerEntitlementPolicyRule                    Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerEntitlementPolicyRuleMetadata            Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerHostingPowerAction                       Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerHostingPowerActionMetadata               Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerHypervisorAlertMetadata                  Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerHypervisorConnection                     Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerHypervisorConnectionMetadata             Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerIconMetadata                             Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerMachine                                  Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerMachineCatalog                           Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerMachineCommandMetadata                   Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerMachineConfiguration                     Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerMachineConfigurationMetadata             Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerMachineMaintenanceMode                   Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerMachineMetadata                          Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerPowerTimeScheme                          Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerPowerTimeSchemeMetadata                  Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerPrivateDesktop                           Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerRebootCycleMetadata                      Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerRebootSchedule                           Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerRemotePCAccount                          Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerSession                                  Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerSessionMetadata                          Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerSharedDesktop                            Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerSite                                     Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerSiteMetadata                             Citrix.Broker.Admin.V2                              
Cmdlet          Set-BrokerTagMetadata                              Citrix.Broker.Admin.V2                              
Cmdlet          Set-ConfigDBConnection                             Citrix.Configuration.Admin.V2                       
Cmdlet          Set-ConfigRegisteredServiceInstance                Citrix.Configuration.Admin.V2                       
Cmdlet          Set-ConfigRegisteredServiceInstanceMetadata        Citrix.Configuration.Admin.V2                       
Cmdlet          Set-ConfigServiceGroupMetadata                     Citrix.Configuration.Admin.V2                       
Cmdlet          Set-ConfigServiceMetadata                          Citrix.Configuration.Admin.V2                       
Cmdlet          Set-ConfigSite                                     Citrix.Configuration.Admin.V2                       
Cmdlet          Set-ConfigSiteMetadata                             Citrix.Configuration.Admin.V2                       
Cmdlet          Set-CtxAppVServerSetting                           Citrix.AppV.Admin.V1                                
Cmdlet          Set-EnvTestConfiguration                           Citrix.EnvTest.Admin.V1                             
Cmdlet          Set-EnvTestDBConnection                            Citrix.EnvTest.Admin.V1                             
Cmdlet          Set-EnvTestServiceMetadata                         Citrix.EnvTest.Admin.V1                             
Cmdlet          Set-EnvTestTaskMetadata                            Citrix.EnvTest.Admin.V1                             
Cmdlet          Set-HypAdminConnection                             Citrix.Host.Admin.V2                                
Cmdlet          Set-HypDBConnection                                Citrix.Host.Admin.V2                                
Cmdlet          Set-HypHostingUnitMetadata                         Citrix.Host.Admin.V2                                
Cmdlet          Set-HypHostingUnitStorage                          Citrix.Host.Admin.V2                                
Cmdlet          Set-HypHypervisorConnectionMetadata                Citrix.Host.Admin.V2                                
Cmdlet          Set-HypServiceMetadata                             Citrix.Host.Admin.V2                                
Cmdlet          Set-HypVolumeServiceConfiguration                  Citrix.Host.Admin.V2                                
Cmdlet          Set-LicAdministrator                               Citrix.Licensing.Admin.V1                           
Cmdlet          Set-LicLACEnabledState                             Citrix.Licensing.Admin.V1                           
Cmdlet          Set-LogDBConnection                                Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Set-LogServiceMetadata                             Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Set-LogSite                                        Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Set-LogSiteMetadata                                Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Set-MonitorConfiguration                           Citrix.Monitor.Admin.V1                             
Cmdlet          Set-MonitorDBConnection                            Citrix.Monitor.Admin.V1                             
Cmdlet          Set-MonitorServiceMetadata                         Citrix.Monitor.Admin.V1                             
Cmdlet          Set-ProvDBConnection                               Citrix.MachineCreation.Admin.V2                     
Cmdlet          Set-ProvScheme                                     Citrix.MachineCreation.Admin.V2                     
Cmdlet          Set-ProvSchemeMetadata                             Citrix.MachineCreation.Admin.V2                     
Cmdlet          Set-ProvServiceConfigurationData                   Citrix.MachineCreation.Admin.V2                     
Cmdlet          Set-ProvServiceMetadata                            Citrix.MachineCreation.Admin.V2                     
Cmdlet          Set-ProvTaskMetadata                               Citrix.MachineCreation.Admin.V2                     
Cmdlet          Set-SfCluster                                      Citrix.Storefront.Admin.V1                          
Cmdlet          Set-SfDBConnection                                 Citrix.Storefront.Admin.V1                          
Cmdlet          Set-SfServiceMetadata                              Citrix.Storefront.Admin.V1                          
Cmdlet          Set-SfTaskMetadata                                 Citrix.Storefront.Admin.V1                          
Cmdlet          Set-UserProfileDefinition                          Citrix.UserProfileManager.Admin.V1                  
Cmdlet          Set-XDLicensing                                    Citrix.XenDesktop.Admin                             
Cmdlet          Set-XDLogging                                      Citrix.XenDesktop.Admin                             
Cmdlet          Set-XDMonitor                                      Citrix.XenDesktop.Admin                             
Cmdlet          Set-XDSiteMetadata                                 Citrix.XenDesktop.Admin                             
Cmdlet          Start-BrokerCatalogPvdImagePrepare                 Citrix.Broker.Admin.V2                              
Cmdlet          Start-BrokerMachinePvdImagePrepare                 Citrix.Broker.Admin.V2                              
Cmdlet          Start-BrokerNaturalRebootCycle                     Citrix.Broker.Admin.V2                              
Cmdlet          Start-BrokerRebootCycle                            Citrix.Broker.Admin.V2                              
Cmdlet          Start-CtxTraceSession                              Citrix.Common.Commands                              
Cmdlet          Start-EnvTestTask                                  Citrix.EnvTest.Admin.V1                             
Cmdlet          Start-HypVM                                        Citrix.Host.Admin.V2                                
Cmdlet          Start-LogHighLevelOperation                        Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Stop-BrokerRebootCycle                             Citrix.Broker.Admin.V2                              
Cmdlet          Stop-BrokerSession                                 Citrix.Broker.Admin.V2                              
Cmdlet          Stop-CtxTraceSession                               Citrix.Common.Commands                              
Cmdlet          Stop-EnvTestTask                                   Citrix.EnvTest.Admin.V1                             
Cmdlet          Stop-HypVM                                         Citrix.Host.Admin.V2                                
Cmdlet          Stop-LogHighLevelOperation                         Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Stop-ProvTask                                      Citrix.MachineCreation.Admin.V2                     
Cmdlet          Switch-EnvTestTask                                 Citrix.EnvTest.Admin.V1                             
Cmdlet          Switch-ProvTask                                    Citrix.MachineCreation.Admin.V2                     
Cmdlet          Test-AcctDBConnection                              Citrix.AdIdentity.Admin.V2                          
Cmdlet          Test-AcctIdentityPoolNameAvailable                 Citrix.AdIdentity.Admin.V2                          
Cmdlet          Test-AdminAccess                                   Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Test-AdminDBConnection                             Citrix.DelegatedAdmin.Admin.V1                      
Cmdlet          Test-BrokerAccessPolicyRuleNameAvailable           Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerAppAssignmentPolicyRuleNameAvailable    Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerAppEntitlementPolicyRuleNameAvailable   Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerApplicationNameAvailable                Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerAssignmentPolicyRuleNameAvailable       Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerCatalogNameAvailable                    Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerDBConnection                            Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerDesktopGroupNameAvailable               Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerEntitlementPolicyRuleNameAvailable      Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerLicenseServer                           Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerMachineNameAvailable                    Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerPowerTimeSchemeNameAvailable            Citrix.Broker.Admin.V2                              
Cmdlet          Test-BrokerRemotePCAccountNameAvailable            Citrix.Broker.Admin.V2                              
Cmdlet          Test-ConfigDBConnection                            Citrix.Configuration.Admin.V2                       
Cmdlet          Test-ConfigServiceInstanceAvailability             Citrix.Configuration.Admin.V2                       
Cmdlet          Test-CtxAppVServer                                 Citrix.AppV.Admin.V1                                
Cmdlet          Test-EnvTestDBConnection                           Citrix.EnvTest.Admin.V1                             
Cmdlet          Test-HypDBConnection                               Citrix.Host.Admin.V2                                
Cmdlet          Test-HypHostingUnitNameAvailable                   Citrix.Host.Admin.V2                                
Cmdlet          Test-HypHypervisorConnectionNameAvailable          Citrix.Host.Admin.V2                                
Cmdlet          Test-LogDBConnection                               Citrix.ConfigurationLogging.Admin.V1                
Cmdlet          Test-MonitorDBConnection                           Citrix.Monitor.Admin.V1                             
Cmdlet          Test-ProvDBConnection                              Citrix.MachineCreation.Admin.V2                     
Cmdlet          Test-ProvSchemeNameAvailable                       Citrix.MachineCreation.Admin.V2                     
Cmdlet          Test-SfDBConnection                                Citrix.Storefront.Admin.V1                          
Cmdlet          Test-UserProfileShare                              Citrix.UserProfileManager.Admin.V1                  
Cmdlet          Unlock-AcctADAccount                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Unlock-AcctIdentityPool                            Citrix.AdIdentity.Admin.V2                          
Cmdlet          Unlock-ProvScheme                                  Citrix.MachineCreation.Admin.V2                     
Cmdlet          Unlock-ProvVM                                      Citrix.MachineCreation.Admin.V2                     
Cmdlet          Unregister-ConfigRegisteredServiceInstance         Citrix.Configuration.Admin.V2                       
Cmdlet          Update-AcctADAccount                               Citrix.AdIdentity.Admin.V2                          
Cmdlet          Update-BrokerImportedFTA                           Citrix.Broker.Admin.V2                              
Cmdlet          Update-BrokerNameCache                             Citrix.Broker.Admin.V2                              
Cmdlet          Update-HypHypervisorConnection                     Citrix.Host.Admin.V2

Citrix License Usage Monitoring using PowerShell


The below PowerShell script could be used to check and receive automated emails on the Citrix License usage. This script has been taken from the good work done on this website.

Where do you run this script?

Citrix License Server

How do you run this?

The script could be saved as a file with an extension of .ps1

Also ensure that you have a folder called report_do_not_delete created on the C: drive on the license server. Also make the relevant changes in the script marked in Red Run the script as a scheduled task at a specific time to receive the license usage reports in your mailbox or run it manually from a PowerShell window in Admin mode

#Region Settings
#Your License Server
$CitrixLicenseServer = “yourlicenseservername”

#Do you want to report on licenses with 0 users?
$ShowUnusedLicenses = $true

#Toggle an alert above this percentage of licenses used
$UsageAlertThreshold = 0

#EndRegion Settings

#Region CollectData
#retrieve license information from the license server
$LicenseData = Get-WmiObject -class “Citrix_GT_License_Pool” -namespace “ROOT\CitrixLicensing” -ComputerName $CitrixLicenseServer

$usageReport = @()
$LicenseData | select-object pld -unique | foreach {
$CurrentLicenseInfo = “” | Select-Object License, Count, Usage, pctUsed, Alert
$CurrentLicenseInfo.License = $_.pld
$CurrentLicenseInfo.Count = ($LicenseData | where-object {$_.PLD -eq $CurrentLicenseInfo.License } | measure-object -property Count -sum).sum
$CurrentLicenseInfo.Usage = ($LicenseData | where-object {$_.PLD -eq $CurrentLicenseInfo.License } | measure-object -property InUseCount -sum).sum
$CurrentLicenseInfo.pctUsed = [Math]::Round($CurrentLicenseInfo.Usage / $CurrentLicenseInfo.Count * 100,2)
$CurrentLicenseInfo.Alert = ($CurrentLicenseInfo.pctUsed -gt $UsageAlertThreshold)
if ($ShowUnusedLicenses -and $CurrentLicenseInfo.Usage -eq 0) {
$usageReport += $CurrentLicenseInfo
} elseif ($CurrentLicenseInfo.Usage -ne 0) {
$usageReport += $CurrentLicenseInfo
}
}
#EndRegion CollectData
$usageReport |Select-Object @{name=’Date-time’;Expression={Get-Date} },License,Count,Usage,PctUsed,Alert|ft -AutoSize|Out-File -Append C:\report_do_not_delete\$(get-date -uformat “%Y-%m-%d”).txt
#$usageReport | Format-Table -AutoSize | out-file “C:\reports\usagereport.txt”

#mail
Send-MailMessage -From “sender@sample.com” -To “receiver@sample.com” -Subject “Citrix XenApp license usage – Daily Report” -Body “Citrix XenApp license usage – Daily Report” -SmtpServer “smtp.sample.com” -Attachments “C:\report_do_not_delete\$(get-date -uformat “%Y-%m-%d”).txt”