Copy members from one Active directory group to another

How to copy members from security group to distribution groups or the other way around? This is how to copy members from one AD group to another with PowerShell.

In our example, we like to copy the users from the AD group Group-A to another AD group Group-B.

To copy members from one AD group to another will work for all group scopes and group types:

  • Group scope: Domain local / Global / Universal
  • Group type: Security / Distribution

Copy members from one AD group to another with PowerShell

PS C:\> Get-ADGroupMember -Identity "Group-A" | ForEach-Object {Add-ADGroupMember -Identity "Group-B" -Members $_.distinguishedName}
You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.

Powered by WordPress and Bootstrap4