Friday, 11 March 2011

Email address policy firstname@domain with Exchange and PowerShell

If you don't know of Exchange (2010) E-mail Address policies, you should. If all your company's people should have an address and a secondary address and then suddenly a new address -- you need E-Mail Address Policies.

Not only that, but you also need PowerShell, since the Exchange console Email Address Policy editor does not support arbitrary email address templates. One address template it can't handle is just that, firstname@anywhere, for which you need Powershell.

Fire up your Exchange Management Shell and enter something along this line:

Set-EmailAddressPolicy -Identity 'Default Policy' -EnabledPrimaryAddressTemplate "" -EnabledEmailAddressTemplates "", ""

That last bit was the magic one. Substitute the 'Default Policy' to whatever policy you're editing and the to suite your organization.


  1. Awesome thanks. Looked high and low trying to find an easy way to do this

  2. Thanks for your information, it was really very helpfull.. Email List

  3. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. email list