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
kuzumAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.