Quickly copy users from one group to another

Posted by

 

If you ever need to quickly copy users from one AD group to another you can use this PowerShell script. It makes use of the Quest AD Commandlets which you can download for free. Simply change the source and target group on the first two lines of the script and run it in PowerShell.

$sourcegroup = "sourcegroup" $targetgroup = "targetgroup" Get-QADGroupMember $sourcegroup | Add-QADGroupMember $targetgroup