Active Directory PowerShell Copy Group Membership From One User To Another

Continuing with my Active Directory PowerShell Module series today I’ll show you how to copy Group membership from one user to another using PowerShell.

This Is a super handy script that worth saving, In the example below I’ll copy David’s Group membership to Dave’s so at the end of the process Dave will be member of the same groups Davis Is member of.

Get-ADUser -Identity David -Properties memberof -Verbose | Select-Object -ExpandProperty memberof -Verbose |

Add-ADGroupMember -Members Tom -PassThru -Verbose

Get-ADUser tom -Properties memberof | select member*

Leave a Reply