
使用 Citrix XenApp PowerShell
一个对生命一无所知的人不知道这存在! 我一直在寻找如何通过筛选某些特征或具有特定条件来创建应用程序列表,直到我发现 XenApp 有一个命令行! 井, 脚本执行 shell, 这使我们能够在命令下执行任何作! 就像 Microsoft 在其服务器上的 PowerShell 一样, XenApp 有一个 PowerShell 或也称为 XenApp 命令.
例如,可以为其提供的实用程序, 使用命令,我们可以导出已发布的应用程序的所有信息及其所有功能, 已配置的用户… 使用另一个命令,我们可以导入它们. 作为备份,这一点也不坏!
Lo primero que habría que hacer sería instalar Microsoft PowerShell en el servidor Citrix XenApp o Citrix Presentation Server si no lo tenemos instalado, si trabajamos sobre Windows 2008 Server sería instalando la característica, y si es un Windows 2003 服务器, bajandolo de la web de Microsoft.
安装后, tenemos que descarhar Citrix XenApp Commands de la web de 我的Citrix.
安装没有任何内容, lo que tiene es aprenderse todos los comandos con sus parámetros! así que instalamos primero,
…
准备, 点击 “完成” 要外出,
Y abrimos “Windows PowerShell with XenApp Commands (CTP2)”
Y se nos abriría la shell para poder ejecutar cualquier comando, por ejemplo ‘Get-XAApplicationReport’ nos sacaría un informe de una o todas o varias aplicaciones, a parte se pueden enlazar con más comandos o redireccionar a ficheros la información que salga de la shell.
A parte tiene una magnifica ayuda donde podremos ver todos los comandos que hay y su funcionamiento! Este es el listado de comandos:
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