#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 }