Solved

need a quest AD Cmdlets or posh script to add email alias to distribution groups

Posted on 2013-11-14
6
640 Views
Last Modified: 2013-11-14
can someone provide a script that we can run to add an additional email alias to a group of distribution groups.

thx - S.
0
Comment
Question by:siber1
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:lindento
ID: 39649937
Hi,

which version of exchange do you use?

Best regards
0
 

Author Comment

by:siber1
ID: 39649940
exchange 2010.. thx
0
 
LVL 4

Expert Comment

by:lindento
ID: 39649986
Hi,

do want to add a member to those distribution group or add an additional email alias for the distribution groups?

Best ergards
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:siber1
ID: 39650020
just add an additional email alias. thanks
0
 
LVL 4

Accepted Solution

by:
lindento earned 500 total points
ID: 39650050
Hi,

you need to create a csv file of the following format:

DL,NewEmailAddress
List1,test1@test.com
List2,test2@test.com

Save this file to c:\updatedl.csv

then open powershell and run:

Import-CSV "C:\updatedl.csv" | ForEach {Set-distributionlist $_.DL -EmailAddresses @{add=$_.NewEmailAddress}}

Best Regards
0
 

Author Closing Comment

by:siber1
ID: 39650165
brilliant. exactly what I was looking for. thx
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read this checklist to learn more about the 15 things you should never include in an email signature.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
how to add IIS SMTP to handle application/Scanner relays into office 365.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question