Link to home
Start Free TrialLog in
Avatar of hariharan nv
hariharan nvFlag for India

asked on

Export & Import applications

We are looking to Import the Published application from a delivery group to another Delivery group on the same Site.
Around 70 Published apps are there in the delivery group and we want to Import all the applications.Is it possible to export and Import the published applications on the same Site .

Version : Xendesktop 7.15
OS : 2008R2
Avatar of Sam Jacobs
Sam Jacobs
Flag of United States of America image

On the DDC, open up a PowerShell window and enter:
# copy applications from one delivery group to another
$srcDGName = (Get-BrokerDesktopGroup).Name | Sort | Out-GridView -Title "Source Delivery Group" -OutputMode Single
$srcDG = (Get-BrokerDesktopGroup) | ? Name -eq $srcDGName
$apps = Get-BrokerApplication -DesktopGroup $srcDG.Uid
$targetDGName = (Get-BrokerDesktopGroup).Name | Sort | Out-GridView -Title "Import $($apps.Count) applications to which Delivery Group?" -OutputMode Single
$targetDG = (Get-BrokerDesktopGroup) | ? Name -eq $targetDGName
foreach ($app in $apps) {
	Write-Host "Importing $($app.Name) ... to $($targetDG.Name)"
	Get-BrokerApplication $app.Uid | Add-BrokerApplication -DesktopGroup $targetDG.Uid
}

Open in new window

... or you open Citrix Studio, select the new delivery-group, select "add applications" and within the wizard you see a dropdown box where you select "existing" ...

But this works within the same Site only
Avatar of hariharan nv

ASKER

Let me try this as this needs to be performed in within same site
hi dirk,

i have tried the steps you mentioned but after completing the wizard the applications are not visible on the studio console in the destination folder.
Any suggestion
Have you tried the PowerShell script above? It allows you to select the source and target Delivery Groups via a GUI, and yes, it works within the same site.
With studio you enhance the existing Application-settings to the new delivery-group. You don't create a new app with different settings.
If you need an independent copy of the app, you should try the script from  Sam Jacobs.
Sam where should we mention the Target delivery group.COuld you please confirm is it on below line with Double quotes? If possible cold you provide me the script with Source delivery group as "Test 1" & target delivery Group as "Test 2"

$targetDGName = (Get-BrokerDesktopGroup).Name | Sort | Out-GridView -Title "Import $($apps.Count) applications to which Delivery Group?" -OutputMode Single
Hi Sam,

Script isn't working , could you please confirm me the parameters which I need to modify on the script you provided.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.