Cool PowerShell commands for manipulating XenApp

11 Jan 2012

After installing the XenApp 6 SDK you can do some neat PowerShell scripts to help move things around. I recently created a test farm and needed a way to move all the applications and their settings from the original farm. These commands did it:

First: Export the XenApp configuration

http://www.jasonconger.com/post/migrate-citrix-xenapp-6-folder-structure-using-powershell/
http://www.jasonconger.com/post/export-and-import-citrix-xenapp-6-published-applications-using-powershell/

Get-XAApplicationReport * | Export-Clixml c:\testingApps.xm

Copy C:testingapps.xml to the new server.
Create the folder structure:

Import-Clixml c:\testingapps.xml | New-XAFolde

Load your previous application settings:

Import-Clixml c:\testingApps.xml | New-XAApplication -WorkerGroupNames $nul