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.

1 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 comment