Need to bulk add an SMTP alias to users who don't get recipient policies.
Can I do this with a piped command or do I need a script? This is what I am thinking: Get-MailBox | Where { $_.EmailAddressPolicyEnabled -eq $false } | Set-Mailbox -EmailAddresses @{Add=%g.%s'@domain.local'} But apparently powershell doesn't go for %g%s and if i put it in quotes, it interprets it literally. Thanks!
May 17th, 2011 12:20pm

Hi Mloradites, I tested on my lab, maybe you can follow these steps to add additional email address: $user = Get-Mailbox -Identity "user@domain.com" $user.emailaddresses.Add('testdoim1@yahoo.com') $user | Set-Mailbox Here are some similar threads, hope can give you some help: Powershell Add Secondary SMTP Address in bulk for Exchange Server 2010 SP1 http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/4dab79d2-9e66-49ab-824c-1999c08d805f/ Adding new mail Adresses to a mail account http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/832be0e4-c6e9-489c-b820-c060c80ab907 Thanks, Evan Liu TechNet Subscriber Support in forum If you have any feedback on our support, please contacttngfb@microsoft.com Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2011 5:42am

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

Other recent topics Other recent topics