Created
July 19, 2018 08:17
-
-
Save AshFlaw/6ebc65a3bccfe078c11ba00e7788e0b8 to your computer and use it in GitHub Desktop.
Copy AD group memberships from one user account to another.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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