Change Email Attribute for Dynamic Distribution List

Greetings,

I work for a school district and we're becoming a "Google" district (email for students, drive/docs for staff and students).
We had to use the 'UserPrincipalName' AD attribute on all the AD accounts in order to get them all provisioned in Google.
None of our groups/distributions lists moved over because there is no 'UserPrincipalName' on the list and email address domain doesn't match the domain in Google.
To explain that, we're a "K12" district (Junior high and High School) so the domain is @domain.k12.ca.us.  Several years ago, we purchased a shorter version of that domain so we also have @domain.us.  The domain we chose to use in Google is the shorter version (@domain.us).
All of our distribution lists have @domain.k12.ca.us because that is still the primary domain in our Exchange environment.
My question is 2-fold:
         ---  Is there a Powershell command or script that will allow me to change the email address to the shorter version (@domain.us) without having to delete and recreate the lists - keep in mind, 90% of our distribution lists are dynamic?
         ---  If this can't be done with Powershell, what impact would there be on our email flow if I switched the primary domain in Exchange to be the shorter (@domain.us) version?
skbarnardAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

GiladnCommented:
have a look here:
 http://admodify.codeplex.com/

I believe it's working for 2008..

read before using it and use with caution!
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
skbarnardAuthor Commented:
Thanks for the link however, it's not showing any of the dynamic groups so this won't help with my situation
0
GiladnCommented:
Hi,

you need to export all DL's to a csv file and then execute them command to modify, I will look it up for you, is it possible to ADD an alias instead of modifying current email address?
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

skbarnardAuthor Commented:
Very good question, yes it might work to add the alias but I'll have to verify that with the vendor assisting our Google district setup.
0
GiladnCommented:
best thing I've found is here:
http://gallery.technet.microsoft.com/scriptcenter/411aec4e-8c01-4594-b993-fbd968f15399

take a look, this should apply to exchange 2010, you might need to modify the code, do you think it will solve your problem?

Gilad
0
skbarnardAuthor Commented:
Thanks for the link.  This looks to be a really good PS1 code.  I wanted to check things before  ran this though so I was manually trying to change the alias on one distribution list; it appears the alias for a distribution group can't have the @ in it so again, I don't think this is going to work.
0
skbarnardAuthor Commented:
While neither of these links resolved my particular issue, the links provided are very good; part of this was because I thought the dynamic groups weren't showing - that turns out to have been an MMC snafu.  We ultimately resorted to manually entering the attribute - tedious but successful.
Thanks Gilad for all your input.
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.