Forum Discussion
Quinton Wells
Dec 09, 2020Copper Contributor
Attempting to retrieve a list of all (Unified Groups) of which given users are members
I have a script in design to give me unified group memberships for a supplied list of users. I have tried the following: $userFQDN = Get-User $user.DisplayName | select -ExpandProperty Distin...
VasilMichev
MVP
Using the filter is the fastest/easiest way to do this, and it should work just fine. Make sure you are passing a proper value for the DN though.
Quinton Wells
Dec 11, 2020Copper Contributor
Hi Vasil
Thanks for your reply.
Are you able to improve my -filter format, please?
Thanks
QW
- VasilMichevDec 12, 2020MVP
The format is fine, just make sure you are passing the correct DN.
- Quinton WellsFeb 15, 2021Copper Contributor
Hi VasilMichev
I'm getting confused around the format - which type of quotes to use?
In particular when using a variable to specify the comparison string.
Thanks
QW