Citrix XenApp

Adding a user or security group to every published application in your XenApp farm


I had a need to add a certain security group to every single published application in a XenApp 6.5 farm today. Create a new file with the extension .ps1 and copy and paste this in:

Then run the PowerShell script. It will enumerate all apps in your farm and add the security group or user ID you specified to each app. Don’t worry, it won’t overwrite any existing users or groups for the apps, it will only add.

When you check the app properties now, you will see the new group added to all apps. Hope this helps!


About Jason Samuel

Jason Samuel lives in Houston, TX with a primary focus on strategic advisory and architecture of end-user computing, security, enterprise mobility, virtualization, and cloud technologies from Citrix, Microsoft, & VMware. He also has an extensive background in web architecture and networking over his 20+ year career in IT. He is an Author, Speaker, and Local User Group Community Leader. He is certified in several technologies and is 1 of 63 people globally that is a recipient of the prestigious Citrix Technology Professional (CTP) award. He is 1 of 42 people in the world that has been awarded as a VMware EUC Champion and VMware vExpert. He is a featured author on DABCC which provides the latest IT Community News on Cloud, Data Center, Desktop, Mobility, Security, Storage, & Virtualization. In his spare time Jason enjoys writing how-to articles and evangelizing the technologies he works with. Disclaimer: The content and opinions expressed in articles and posts are his own and are by no means associated with his employer.

Recommended for you


  1. Lauren Dunnevant

    April 28, 2016 at 1:05 PM

    The equivalent in 7.x would be:

    Get-BrokerApplication | Add-BrokerUser -Name 'domain\username'

    You can also be more specific with regards to a folder name, for example:
    Get-BrokerApplication -Name 'Foldername\*' | Add-BrokerUser -Name 'domain\username'

    Hope this is useful to someone!

  2. David Worthley

    May 24, 2018 at 1:33 PM

    Thanks @Lauren Dunnevant. I had to comment because I was looking for exactly this. This works! and saved me a lot of time.

Leave a Reply

Your email address will not be published. Required fields are marked *