How to copy AD Members from one group to another group

If you have an AD group full of members, and you want to copy that memberlist over to another group, then it can be done with this powershell scipt:

From: put in the AD group where you want to copy users from.

TO: put in the AD group name where you want the users to be copied to.

Get-ADGroupMember “FROM” | get-aduser | foreach-object {add-adgroupmember -identity “TO” -Members $_.SamAccountname}

Thats it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s