
Using Citrix XenApp PowerShell
One who is ignorant of life did not know that this existed! I was looking for how to create lists of applications by filtering certain characteristics or with certain conditions until I found that XenApp has a command line! Well, a script execution shell, that allows us to perform anything under command! Just like Microsoft's PowerShell on its servers, XenApp has a PowerShell or also called XenApp Commands.
For example, a utility that can be given to it, With a command we can export all the information of the applications that we have published with all their features, Configured Users… and with another command we can import them. This as a backup is not bad at all!
The first thing to do would be to install Microsoft PowerShell on the Citrix XenApp server or Citrix Presentation Server if you don't have it installed, if we work on Windows 2008 Server would be installing the feature, and if it's a Windows 2003 Server, by downloading it from the Microsoft website.
Once installed, we need to download Citrix XenApp Commands from the website MyCitrix.
The installation has nothing, what it has is to learn all the commands with their parameters! So we install first,
…
List, Click on “Finish” To go out,
And we open “Windows PowerShell with XenApp Commands (CTP2)”
And the shell would open up to be able to execute any command, for example 'Get-XAApplicationReport’ it would get us a report from one or all or more applications, In addition, you can link to more commands or redirect the information that comes out of the shell to files..
It also has a magnificent help where we can see all the commands that are there and how they work! This is the list of commands:
Add-XAAdministratorPrivilege
Add-XAApplicationAccount
Add-XAApplicationFileType
Add-XAApplicationServer
Add-XALoadEvaluatorServer
Add-XASessionPrinter
Clear-XAConfigurationLog
Connect-XASession
Copy-XAApplication
Disable-XAAdministrator
Disable-XAApplication
Disable-XAPolicy
Disable-XAServerLogOn
Disconnect-XASession
Enable-XAAdministrator
Enable-XAApplication
Enable-XAPolicy
Enable-XAServerLogOn
Get-XAAccount
Get-XAAccountAuthority
Get-XAAdministrator
Get-XAAdministratorFolder
Get-XAAdministratorPrivilege
Get-XAApplication
Get-XAAppliedPolicy
Get-XAAutoReplicatedPrinterDriver
Get-XAClientModule
Get-XAClientPrinter
Get-XAConfigurationLog
Get-XAFarm
Get-XAFarmConfiguration
Get-XAFileType
Get-XAFolder
Get-XAHmrTest
Get-XAIconStream
Get-XALoadEvaluator
Get-XAMemoryOptimization
Get-XAOfflineLicense
Get-XAPolicy
Get-XAPolicyConfiguration
Get-XAPolicyFilter
Get-XAPrinter
Get-XAPrinterDriver
Get-XAPrinterDriverCompatibility
Get-XAPrinterDriverMapping
Get-XAPrintServer
Get-XAProfileApplication
Get-XAResultantPolicy
Get-XAServer
Get-XAServerConfiguration
Get-XAServerLoad
Get-XASession
Get-XASessionPrinter
Get-XASessionProcess
Get-XAStreamingSession
Get-XAVirtualIPRange
Get-XAZone
Import-XALegacyApplication
Import-XAPrintServer
Move-XAApplication
Move-XAFolder
Move-XAServer
New-XAAdministrator
New-XAApplication
New-XAAutoReplicatedPrinterDriver
New-XAClientPrinter
New-XAFolder
New-XAHmrTest
New-XAIcaFile
New-XALoadEvaluator
New-XAPolicy
New-XAPrinterDriverCompatibility
New-XAPrinterDriverMapping
New-XAVirtualIPRange
Remove-XAAdministrator
Remove-XAAdministratorPrivilege
Remove-XAApplication
Remove-XAApplicationAccount
Remove-XAApplicationFileType
Remove-XAApplicationServer
Remove-XAAutoReplicatedPrinterDriver
Remove-XAClientPrinter
Remove-XAFolder
Remove-XAHmrTest
Remove-XALoadEvaluator
Remove-XALoadEvaluatorServer
Remove-XAPolicy
Remove-XAPrinterDriverCompatibility
Remove-XAPrinterDriverMapping
Remove-XAPrintServer
Remove-XAServer
Remove-XASessionPrinter
Remove-XAVirtualIPRange
Rename-XAApplication
Rename-XAFolder
Rename-XAHmrTest
Rename-XALoadEvaluator
Rename-XAPolicy
Rename-XAZone
Replicate-XAPrinterDriver
Reset-XAClientPrinter
Send-XASessionMessage
Set-XAAdministrator
Set-XAAdministratorFolder
Set-XAApplication
Set-XAFarmConfiguration
Set-XAHmrTest
Set-XALoadEvaluator
Set-XAPolicy
Set-XAPolicyConfiguration
Set-XAPolicyFilter
Set-XAPrinterDriverCompatibility
Set-XAPrinterDriverMapping
Set-XAServerConfiguration
Set-XAServerEdition
Set-XAServerZone
Set-XASessionPrinter
Stop-XASession
Stop-XASessionProcess
Test-XAConfigurationLog
Test-XALicenseServer
Update-XAFileType
Update-XAPrinter