Copy the AD Memberships from one user to another.
PS1
$groups = get-aduser REFERENCEUSER -properties MemberOf foreach ($Group in $Groups.memberof){Add-ADGroupMember -Identity $Group -Members TARGETUSER}
Copy the AD Memberships from one user to another.
PS1
$groups = get-aduser REFERENCEUSER -properties MemberOf foreach ($Group in $Groups.memberof){Add-ADGroupMember -Identity $Group -Members TARGETUSER}