How To Copy Group Members To Another Group in Active Directory via PowerShell

One line PowerShell command to perform this task

Get-ADGroupMember "fromgroupname" | ForEach-Object {Add-ADGroupMember -Identity "togroupname" -Members $_}

Leave a Reply

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