Export group membership into a new group
Exchange 2007/2010 mixed environment. We have a business unit with 100 populated DEV groups, and they now want 100 QA groups created with the same members (new group name is the same as the old group name, with "DEV" replaced by "QA"). I have the new empty
groups created. How can I dump out the membership of an old group to an array and use the array to import them to the corresponding new group. I have a CSV file matching old group name to new group name.
May 4th, 2012 10:01am
You can try this:
$Members = (Get-Group -Identity "Old Group Name").Members
New-DistributionGroup -Name "New Group Name"
$Members | Add-DistributionGroupMember -Identity "New Group name"
You'll probably need to experiment with the technique in your particular environment.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
May 4th, 2012 3:59pm
You can try this:
$Members = (Get-Group -Identity "Old Group Name").Members
New-DistributionGroup -Name "New Group Name"
$Members | Add-DistributionGroupMember -Identity "New Group name"
You'll probably need to experiment with the technique in your particular environment.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
May 4th, 2012 10:46pm
Hi,
How is the issue now?Xiu Zhang
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2012 5:47am
Yes, that command did the trick.
Thanks!
May 14th, 2012 2:23pm