Hello
I want to pass multiple group names in the -Identity param for Get _ADGroupMember. I tried many others ways but it did not work out.
I have $groupnames @()
with 7-8 elements in it.
I want to use this $groupname as
$groupMembers = Get-ADGroupMember -identity $groupName | Select SamAccountName
How do I achieve this?