Adding additional SMTP address through EMS
I have read through much documentation on both Exchange itself and the EMS. I am comfortable using the command shell, and like its abilities. One thing I have not seen in the EMS is how to create additional SMTP addresses for a specific user. I can only find how to accomplish this with the EMC. If anyone knows the cmdlet to use, (Im guessing "New-Mailbox" for our purposes) I would apprecaite it. Right now i am not worried about the actual script, i have time to play with it before asking all the questions I am sure to have. ^_^ Thanks everyone.Scotty
May 26th, 2009 7:46pm

Do you want the additional SMTP address to be the new primary SMTP address, or just an additional one?You will be using the set-mailbox cmdlet.Karl
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2009 7:55pm

the new SMTP address wants to be the primary one. thank you Karl, that was the cmdlet I was looking for. ^_^Scotty
May 26th, 2009 8:00pm

Try this (in test) $newaddressstring = Read-Host "Please enter the new primary SMTP" $user = Read-Host "Please enter the users login ID " $oldaddress = get-mailbox -identity $user |select PrimarySmtpAddress set-mailbox -identity $user -PrimarySmtpAddress $newaddressstring -EmailAddressPolicyEnabled $false do{$address = get-mailbox -identity $user |select PrimarySmtpAddress}while ($address.PrimarySmtpAddress.ToString().ToLower() -ne $newaddressstring) $mailbox = Get-Mailbox -identity $user set-mailbox -identity $user -EmailAddresses $mailbox.EmailAddresses
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2009 8:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics