Citrix Provisioning Server 6 and above provide disk versioning, which is extremely useful for ensuring you can properly test your updates before moving to production. I created the script below to duplicate all of my published applications so that I may launch them from the test server(s) I have booted.
get-xaapplication| copy-xaapplication –folderpath “Applications/TEST”;
get-xaapplication–folderpath “Applications/TEST” | %{remove-xaapplicationaccount–browsername $_.browsername -accounts (get-xaaccount –browsername $_.browsername) }
get-xaapplication–folderpath “Applications/TEST” | set-xaapplication –workergroupnames AllFarmTestServers
get-xaapplication–folderpath “Applications/TEST” | %{add-xaapplicationaccount –browsername $_.browsername -accounts (get-xaaccount –AccountDisplayName “Contosouser”)}
get-xaapplication –folderpath “Applications/TEST” | Enable-XAApplication
You will need the XenApp 6.5 SDK to use it, but it is very handy to be able to create all your applications in the blink of an eye.