Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

add members to DL group in exchange

DL group management in exchange

can you please add more on this script to allow me to add more people in managed by section in ~Exchange 2010 mail enabled Distrubution groups

thanks
0
kuzum
Asked:
kuzum
  • 3
  • 3
1 Solution
 
kuzumAuthor Commented:
GC C:\group.txt | ?{$_}|%{
Set-DistributionGroup -Identity $_ -ManagedBy "username"
}
0
 
SubsunCommented:
Is this for one group or multiple groups? If multiple, do you want to add same set of users as ManagedBy or does the users change for each DL?
0
 
kuzumAuthor Commented:
No, let's say same group but we would like to add more admin to managed by section
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
SubsunCommented:
Try this..
If you have only few users to add then the command posted in previous quesion will work....
Set-DistributionGroup -Identity "GroupName" -ManagedBy "UserA","UserB","UserC"

Open in new window


If you have many users, then add them into a text file and use  following code..
$ManagedBy = GC C:\Admin.txt | ?{$_}
Set-DistributionGroup -Identity "GroupName" -ManagedBy $ManagedBy

Open in new window

C:\Admin.txt format
UserA
UserB
UserC
UserD

Open in new window

0
 
kuzumAuthor Commented:
please watch out my last request for same teas but this time it will be 2003 DLs which I am receiving warning to update the DL to latest exchange 2010 version but in the end it accepts my request to update manage by section for DLs.
0
 
SubsunCommented:
If required you can upgrade the legacy Dl's
Set-DistributionGroup GroupName –ForceUpgrade

Open in new window

0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now