December 13, 2016 - Nick

Display Delivery Group Membership across your entire XenDesktop infrastructure

Wanted to share this one out, because I couldn’t find anything out there that would cleanly get this information for me so we went to the drawing board.

This powershell script will display Delivery Group Name, User AD Account name and then User’s Full name like this:

group user fullname
Test_Delivery_Name NFI\NickyFixIt Fuchs, Nick

 $out = @()

foreach ($g in (Get-BrokerAccessPolicyRule -DesktopGroupName * )) {
foreach ($u in $g.IncludedUsers) {
$d = “” | select group,user,fullname,via
$d.group = $g.DesktopGroupName
$d.user = $u.Name
$d.fullname = $u.FullName
$d.via = $g.AllowedConnections

$out += $d
}
}

$out | export-csv -notype “C:\temp\nickyfixit.csv”

 

Thanks Josh @ LockStepGroup

Powershell / XenDesktop

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>