Jump to content
Welcome to our new Citrix community!
  • 0

Powershell - Xendesktop 7 - Check for group assignment in multiple application - if not exists then add group

sid van


Hello good day,


I am pretty  new in Powershell so I have the following issue.


In  the company we have  Virtual apps and Desktops 7.19. We have a lot of published applications.

Now I have the following: I would like to make a script to check that a certain group is assigned to multiple applications, that is all apps that with a specific name in the application name for example, all apps that contain *SAP* word. 

Now searching is easy to check just a list of SAP application and get the group members. 


Get-BrokerApplication –applicationname “*SAP" |select AssociatedUserFullNames,

ApplicationName | |out-gridview 


But, of course, what i really what is to check those SAP applications if a certain domain group has be assigned to all those SAP applications. If not exist, then add that domain group

Also, to getting the final result, would it be possible to get a message of the output like a number of applications affected (group wwas added) etc..


Please help 



Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...