From 5771d6bff7a2b1ebca5a9ac0ae326dc74c2839f9 Mon Sep 17 00:00:00 2001 From: pierre Date: Wed, 17 Jul 2024 07:58:59 +0000 Subject: [PATCH] Upload New File --- Citrix/Change_deliveryGroup_from_app.ps1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Citrix/Change_deliveryGroup_from_app.ps1 diff --git a/Citrix/Change_deliveryGroup_from_app.ps1 b/Citrix/Change_deliveryGroup_from_app.ps1 new file mode 100644 index 0000000..abdaac5 --- /dev/null +++ b/Citrix/Change_deliveryGroup_from_app.ps1 @@ -0,0 +1,20 @@ +#Get-Module Citrix.* -ListAvailable | Select-Object Name -Unique +#Get-Command -Module Citrix.Broker.Commands #>> \\roser-total.local\files\AdminFiles\Citrix_scripts\Citrix_Broker_Commands_available_commands.txt + + +#display delivery group te-acc-app + +$targeted_DesktopGroup = Get-BrokerDesktopGroup -uuid e38188aa-cb5c-4da5-80de-5453fdc7239e |Select-Object Name, uuid +$targeted_group_uuid = $targeted_DesktopGroup.uuid +$targeted_group_name = $targeted_DesktopGroup.Name + +#display all the apps under this delivery group (based per site and folder ?) +$Selected_applications = Get-BrokerApplication -AllAssociatedDesktopGroupUUID $targeted_group_uuid|Select-Object Name,AdminFolderName,AllAssociatedDesktopGroupUUIDs,ApplicationName ,AssociatedUserNames ,BrowserName|Out-GridView -PassThru -title "Select applications to remove from the $targeted_group_name group" + + +#perform the modification on the UUID in each applications + +foreach($application in $Selected_applications){ + Write-Output $application + #Remove-BrokerApplication -InputObject $application -DesktopGroup $targeted_DesktopGroup +}