How to Copy Members of a Security Group in Active Directory

Ever ran into a task where you needed to copy all the members of a certain AD security group over to a new or existing security group?

If so, you can use the powershell command below to complete this task.

 

Get-ADGroupMember -Identity “ExistingGroup” | Add-ADPrincipalGroupMembership -MemberOf “NewGroup”

 

PS