Skip to content

Instantly share code, notes, and snippets.

@AshFlaw
Created July 19, 2018 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AshFlaw/6ebc65a3bccfe078c11ba00e7788e0b8 to your computer and use it in GitHub Desktop.
Save AshFlaw/6ebc65a3bccfe078c11ba00e7788e0b8 to your computer and use it in GitHub Desktop.
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