This message was deleted.
# citrix-vad
s
This message was deleted.
n
I know I can just use | Select -Unique to get around this, but I'm curious if there's a better way.
j
One for AG and one for direct. Select the AllowedConnections value and you should see the difference
n
Let me clarify, because I think we're talking about different things...
I mean these users:
I think AllowedConnections is the AccessPolicy
j
hrmm I am intrigued - what's your specific flow to get the duplicate results?
d
I think the reason is this: AllowedConnections : ViaAG
there are two policies one for each method
nevermind already answered
🙂
n
This will grab the unique users:
Copy code
(Get-BrokerAccessPolicyRule -AdminAddress $Broker -DesktopGroupName $DG | Select -ExpandProperty IncludedUsers).Name | Select -Unique
I found posts on Citrix's forum that all showed the same - that cmdlet has returned duplicate results for like 5+ years now, lol
🥸 1