Jump to content


Photo

XenDesktop 7.5 Script Help

Started by Shane Metz , 17 March 2017 - 01:57 PM
4 replies to this topic

Shane Metz Members

Shane Metz
  • 12 posts

Posted 17 March 2017 - 01:57 PM

I'm trying to find a way to export all delivery groups in my environment and all users for each delivery group.  Is there an easy way to do this?  I have used Get-BrokerAccessPolicyRule to export users for each delivery group individually but would like to do all of them at the same time and know which delivery group the users are part of. 

 

Thanks in advanced



George Spiers Members

George Spiers
  • 224 posts

Posted 18 March 2017 - 12:37 PM

The command Get-BrokerAccessPolicyRule outputs all delivery groups, what do you mean by individually?



Shane Metz Members

Shane Metz
  • 12 posts

Posted 20 March 2017 - 12:38 PM

When I use Get-BrokerAccessPolicyRule I get all the users but it does not list what delivery group that user has access to.  Is there a way to list a delivery group then what users have access to that specific delivery group for all delivery groups. 

 

 

Thanks!



Sergey Kozlov Members

Sergey Kozlov
  • 41 posts

Posted 20 March 2017 - 05:58 PM

Hi Shane,

Here is a script that selects all of Users, Delivery Groups and Machine Names:

 

Get-BrokerDesktop -IsAssigned $True -SortBy DesktopGroupName | ft DesktopGroupName, AssociatedUserNames,

MachineName  | export-csv c:\UDVM.csv



Shane Metz Members

Shane Metz
  • 12 posts

Posted 21 March 2017 - 07:49 PM

Thanks for the help Sergey!  I will give this a try.