So I like to have a group that can run every and all published application so I can login and at least smoke test them.
Thats far to much clicking for me, so powershell to the rescue.
1 2 3 4 5 |
Add-PSSnapIn citrix.xenapp.commands $Groups="Revord\Citrix_Admins" Get-XAApplication | foreach {Add-XAApplicationAccount $_.BrowserName $Groups} |
Those 3 lines gets Citrix_Admins into EVERY published application, not to shabby.
Lets take it a bit further, you need to add say multiple groups, but only to a folder of published applications..
No problem..
1 2 3 |
$Groups="Revord\Citrix_Admins","Revord\Domain Users" Get-XAApplication -FolderPath "Applications\Utils" | foreach {Add-XAApplicationAccount $_.BrowserName $Groups} |
So in my environment all my MMC’s etc are published in the Applications\Utils path for readability.
But wait, what was I thinking, giving domain users access to all my published utilities!
No problem we can use the same trick in reverse to rid ourselves of those extra accounts.
1 2 3 |
$Groups="Revord\Domain Users" Get-XAApplication -FolderPath "Applications\Util-Servers" | foreach {Remove-XAApplicationAccount $_.BrowserName $Groups} |
Now there is a neat glitch, if you run these powershell commands with a actively running AppCenter you’ll need to select applications and hit F5 to refresh and actually see your changes did take effect.
Enjoy!
Ryan