Exchange 2007 and change the email address on a distrubution list
Hi,
I have a requirement to change the distrubutuion list email address on multiple
Mail-Enabled Universal Distribution Group
Mail-Enabled Universal Security Group
Mail Non-Universal Group
Is there an easy way to achieve this via the EMS?
What I need to do is change only the email address or name for a period of time before I delete these groups.
Thanks
July 27th, 2012 7:04am
You may achieve this by providing the inputs (groupnames, to be changednames and to be changed email addresses) in separate columns in each csv file. The first line of the csv file must have words groupname,changedname,newemailaddress
foreach($entry in import-csv <csvfilepath>){
Set-DistributionGroup $entry.groupname -Emailaddresspolicyenabled $false
Set-DistributionGroup $entry.groupname -name $entry.changedname -primarysmtpaddress $entry.newemailaddress
}
Free Windows Admin Tool Kit Click here and download it now
July 27th, 2012 8:48am
You may achieve this by providing the inputs (groupnames, to be changednames and to be changed email addresses) in separate columns in each csv file. The first line of the csv file must have words groupname,changedname,newemailaddress
foreach($entry in import-csv <csvfilepath>){
Set-DistributionGroup $entry.groupname -Emailaddresspolicyenabled $false
Set-DistributionGroup $entry.groupname -name $entry.changedname -primarysmtpaddress $entry.newemailaddress
}
July 27th, 2012 8:53am
Hi Horsebox69,
Any updates?Frank Wang
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
July 30th, 2012 2:42am