Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Copy AD group memberships from one user account to another.
$Source = ""
$Destination = ""
Get-ADUser -Identity $Source -Properties memberof | Select-Object -ExpandProperty memberof | Add-ADGroupMember -Members $Destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.