Copy “member Of” from user A to user B in Active Directory with powershell.

 

 

Get-ADUser -Identity <source_user> -Properties memberof | Select-Object -ExpandProperty memberof | Add-ADGroupMember -Members <Target_User>