{"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>\u00a0folderpath<\/span><\/span>\u00a0“Applications\/TEST”<\/span>\u00a0|<\/span>\u00a0Enable-XAApplication<\/span><\/span><\/p><\/blockquote>\n

You will need the XenApp 6.5 SDK<\/a>\u00a0 to use it, but it is very handy to be able to create all your applications in the blink of an eye.<\/p>\n

<\/p>\n","protected":false},"excerpt":{"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. get-xaapplication| copy-xaapplication –folderpath “Applications\/TEST”; get-xaapplication–folderpath […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,43,75],"tags":[],"_links":{"self":[{"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/posts\/211"}],"collection":[{"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":0,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"wp:attachment":[{"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}