{"id":211,"date":"2013-02-19T21:00:00","date_gmt":"2013-02-19T21:00:00","guid":{"rendered":"http:\/\/atumvirtwordpress.azurewebsites.net\/?p=211"},"modified":"2013-02-19T21:00:00","modified_gmt":"2013-02-19T21:00:00","slug":"using-citrix-provisioning-services-and-powershell-to-create-test-xenapp-applications","status":"publish","type":"post","link":"https:\/\/avtempwp.azurewebsites.net\/2013\/02\/using-citrix-provisioning-services-and-powershell-to-create-test-xenapp-applications\/","title":{"rendered":"Using Citrix Provisioning Services and Powershell to Create Test XenApp Applications"},"content":{"rendered":"
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. \u00a0I 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.<\/p>\n
get-xaapplication<\/span><\/span><\/span>|<\/span> copy-xaapplication<\/span><\/span> –folderpath<\/span><\/span> “Applications\/TEST”<\/span>;<\/p>\n
<\/span>get-xaapplication<\/span><\/span><\/span>–folderpath<\/span><\/span> “Applications\/TEST”<\/span> |<\/span> %<\/span>{remove-xaapplicationaccount<\/span><\/span>–browsername<\/span><\/span> $_<\/span>.<\/span>browsername<\/span> -accounts<\/span> (get-xaaccount<\/span><\/span> –browsername<\/span><\/span> $_<\/span>.<\/span>browsername<\/span>) }<\/p>\n
<\/span>get-xaapplication<\/span><\/span><\/span>–folderpath<\/span><\/span> “Applications\/TEST”<\/span> |<\/span> set-xaapplication<\/span><\/span> –workergroupnames<\/span><\/span> AllFarmTestServers<\/span><\/span><\/p>\n
<\/span>get-xaapplication<\/span><\/span><\/span>–folderpath<\/span><\/span> “Applications\/TEST”<\/span> |<\/span> %<\/span>{add-xaapplicationaccount<\/span><\/span> –browsername<\/span><\/span> $_<\/span>.<\/span>browsername<\/span> -accounts<\/span> (get-xaaccount<\/span><\/span> –AccountDisplayName<\/span><\/span> “Contoso<\/span>user”<\/span>)}
<\/span>
get-xaapplication<\/span><\/span><\/span>\u00a0–folderpath<\/span><\/span>\u00a0“Applications\/TEST”<\/span>\u00a0|<\/span>\u00a0Enable-XAApplication<\/span><\/span><\/p><\/blockquote>\n