Citrix XenApp 6 PowerShell SDK

Updating using the XenApp SDK Update Resource Kit’ we will be able to have cmdlets to manage our Citrix XenApp6 environment from PowerShell, useful for automating our daily tasks using PowerShell scripts. For XenApp 5 we'll use XenApp Commands,

The first thing will be to install on one of the XenApp servers 6 'XenApp SDK Update', We took him down from the Citrix website, will install cmdlets for us: Citrix XenApp Commands, Citrix Group Policy Provider and Citrix Common Commands.

Interesting examples:

To export our XenApp apps 6 to an XML file (in order to have a 'type’ Backup): 'Get-XAApplicationReport * | Export-Clixml c:export.xml’

To import our applications if necessary: 'Import-Clixml C:export.xml | New-XAApplication’

In order to enable Session Sharing and therefore configure the applications with the same configurations, we can run in a script:
———————————————————————-
$apps = Get-XAApplication
Foreach ($App in $apps){
Set-XAApplication -Browsername $app.browsername -WindowType 100%
Set-XAApplication -Browsername $app.browsername -ColorDepth Colors16Bit
}
———————————————————————-

If we want to configure all or part of the applications against certain servers or Worker Groups, we will execute in a script:
———————————————————————-
$apps = Get-XAApplication
Foreach ($App in $apps){
if ($app.clientfolder -eq “Office automation”)
Set-XAApplication -Browsername $app.browsername -WorkerGroupName “SERVIDORES_OFIMATICA”
# o Set-XAApplication -Browsername $app.browsername -ServerNames “SRVCTX01”, “SRVCTX02”
}
———————————————————————-

Here We have a script that looks to see if we have the different applications configured with each other, Checking: if they are disabled, unassigned to users or servers (or servers that do not already exist), with different resolution, Audio Type, type of encryption or access control.

This other script Check the availability of our servers based on: ping, Alert for disabled logins, and checks the ICA port lifted and ICA Listener responding.

cmdlets available for XenApp:

XAAdministratorPrivilege
XAApplicationAccount
XAApplicationFileType
XAApplicationServer
XAApplicationWorkerGroup
XAAutoReplicatedPrinterDriver
XAWorkerGroupServer
CtxTraceSession
XAApplicationLoadEvaluator
XAConfigurationLog
XASession
CtxSystemInformation
CtxTraceLog
XAApplication
XAFolder
XALoadBalancingPolicy
XAWorkerGroup
XAAdministrator
XAApplication
XALoadBalancingPolicy
XAServerLogOn
XASession
XAAdministrator
XAApplication
XALoadBalancingPolicy
XAServerLogOn
CtxConfigurationLogReport
CtxIcon
CtxProfileApplication
CtxTraceProvider
CtxTraceSession
XAAccount
XAAccountAuthority
XAAdministrator
XAAdministratorFolder
XAAdministratorPrivilege
XAApplication
XAApplicationIcon
XAApplicationParameter
XAApplicationReport
XAAppliedLoadBalancingPolicy
XAAutoReplicatedPrinterDriver
XAClientModule
XAConfigurationLog
XAFarm
XAFileType
XAFolder
XALoadBalancingPolicy
XALoadBalancingPolicyConfiguration
XALoadBalancingPolicyFilter
XALoadEvaluator
XAMemoryOptimization
XAPrinterDriver
XAResultantLoadBalancingPolicy
XAServer
XAServerHotfix
XAServerLoad
XASession
XASessionProcess
XAStreamingSession
XAWorkerGroup
XAWorkerGroupServer
XAZone
XALegacyApplication
XAApplication
XAFolder
XAServer
XAWorkerGroup
CtxInformationPackage
XAAdministrator
XAApplication
XAFolder
XALoadEvaluator
XAWorkerGroup
XAAdministrator
XAAdministratorPrivilege
XAApplication
XAApplicationAccount
XAApplicationFileType
XAApplicationServer
XAApplicationWorkerGroup
XAAutoReplicatedPrinterDriver
XAFolder
XALoadBalancingPolicy
XALoadEvaluator
XAServer
XAWorkerGroup
XAWorkerGroupServer
XAApplication
XAFolder
XALoadEvaluator
XAWorkerGroup
XAZone
XAServerLoadEvaluator
XASessionMessage
XAAdministrator
XAAdministratorFolder
XAApplication
XAApplicationLoadEvaluator
XAConfigurationLog
XALoadBalancingPolicy
XALoadBalancingPolicyConfiguration
XALoadBalancingPolicyFilter
XALoadEvaluator
XAServerEdition
XAServerLoadEvaluator
XAServerZone
XAWorkerGroup
CtxTraceSession
XAPrinterDriverReplication
CtxTraceSession
XASession
XASessionProcess
XAConfigurationLog
XAFileType
XAPrinterDriver

Recommended Posts

Author

nheobug@bujarra.com
Autor del blog Bujarra.com Cualquier necesidad que tengas, Do not hesitate to contact me, I will try to help you whenever I can, Sharing is living ;) . Enjoy documents!!!