create and set as external email address.
Hello,
I am using Exchange 2007.
I would need from the user's Alias:
Alias: USER007
To add after the alias:
@UK.COMPANY.INTRA
And this as External email address --> USER007@UK.COMPANY.INTRA
I would need to apply that change to a list of aliases (Get-Content C:\Scripts\testuser.txt)
Would that be possible?
Thanks a lot.
June 28th, 2010 1:19pm
Hi,
Try this:
Get-Content "C:\Scripts\testuser.txt" |Get-MailContact | foreach{
$ExternalEmailAddress = "$($_.Alias)@Uk.Company.Intra"
Set-MailContact $_.Identity -ExternalEmailAddress $ExternalEmailAddress
}
Regards,
Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
June 28th, 2010 2:34pm