Adding $var for Add-AdGroupmember

Greetings all, The following produces a comma named list with a bunch of samaccount names $GroupMembers = Get-ADGroupMember -Identity ‘leadership distro’ $distroadd = $Groupmembers.samaccountname -join ‘, ‘ $minuscomma = $distroadd.trimend(‘,’) However, when I try to: Add-ADGroupMember -Identity test -Members $minuscomma I get: Add-ADGroupMember : Cannot find an object with identity: listofsamaccount names here However, I […]