This is a tow step process for us:
1- The AD account is first created - but there is no SMTP address created at this time
2- I then need to enable-mailbox for that new user - but I don't want the
EmailAddressPolicyEnabled attribute of the mailbox set to $True. How can I modify my script to accomplish that?
Here is what I have:
$mailbox=import-csv C:\Downloads\NewUser.CSV
ForEach ($mailbox in $mailbox) {Enable-Mailbox -Identity $Mailbox.Identity -Database $Mailbox.Database -ManagedFolderMailboxPolicy "90 day policy" -ManagedFolderMailboxPolicyAllowed}
Set-CASMailbox -Identity $mailbox.Identity -ActiveSyncEnabled:$false -POPEnabled:$false -OWAEnabled:$false -IMAPEnabled:$false
ExchangeGuru