Go Premium for a chance to win a PS4. Enter to Win

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

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

can someone provide a script that we can run to add an additional email alias to a group of distribution groups.

thx - S.
0
siber1
Asked:
siber1
  • 3
  • 3
1 Solution
 
lindentoCommented:
Hi,

which version of exchange do you use?

Best regards
0
 
siber1Author Commented:
exchange 2010.. thx
0
 
lindentoCommented:
Hi,

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

Best ergards
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
siber1Author Commented:
just add an additional email alias. thanks
0
 
lindentoCommented:
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
 
siber1Author Commented:
brilliant. exactly what I was looking for. thx
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

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