New-mailbox oddity

I’ve been doing a lot with Exchange recently and found an interesting quirk.

If you use the New-mailbox cmdlet with the –PrimarySMTPaddress parameter the mailbox doesn’t get email address policies applied.

You need to use set-mailbox to turn policy application on – after the mailbox has finished creating

This entry was posted in Exchange, Powershell. Bookmark the permalink.

One Response to New-mailbox oddity

  1. Terry E Dow says:

    Odd. When I perform a Connect-Mailbox and directly afterwards set the AD ‘mail’ attribute (a.k.a. PrimarySMTP Adddress) via ADSI PUT() I get an error “Value does not fall within the expected range.”.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s