Copy AD Group Members to Another Group

Updated

copy ad groups from one user to another

Need to copy members from one Active Directory group to another? In this guide, I’ll show you how to copy group members using PowerShell and the AD Pro Toolkit. I’ll cover copying members between groups and cloning a user’s group membership to another user.

How to Copy Group Members with PowerShell

In this example, I’m going to copy the group membership from user adam.lewis to user james.knutson.

Get-ADUser -Identity adam.lewis -Properties memberof | Select-Object -ExpandProperty memberof | Add-ADGroupMember -Members james.knutson

The above command uses the Get-ADUser cmdlet to get the group membership (memberof) from user adma.lewis. It then pipes that data to the Add-ADGroupMember cmdlet to update the group membership for user james.knutson.

Now if I compare the two users group memberships, they will be the same.

Both accounts compared, showing identical group membership after the copy

Copy Group Members AD Pro Toolkit

With the AD Pro Toolkit, you can easily copy group membership to one or multiple user accounts. You can try this tool free for 14 days, Download AD Pro Toolkit.

Step 1. Select Source user

Step 2. Select Target User

Step 3. Click Copy Groups

Toolkit showing the source account's groups and the ones added to the target

The nice feature with the toolkit is it shows you the source accounts groups and which groups the user was added to.