Adding a mailbox and email addresses to existing AD acount.
I'm trying to add a mailbox to an existing account specifing the Primary SMTP address and then adding the X400 and a secondary SMTP. This is what I have ... enable-mailbox -Identity <UserIdParameter> -Alias <string> -Database <DatabaseIdParameter> -PrimarySmtpAddress <string> #Start-Sleep -s 15 If I put a 15 Second delay here it works. If I don't I get a object email address not found error. I don't want to have the delay. $usermbx = Get-Mailbox UserName $usermbx.emailAddresses+='SSmtpAddress','X400:C=US;A= ;P=CCCI;O=WHQ;S=lastname;G=firstname;' Set-Mailbox $usermbx -emailAddresses $usermbx.emailAddresses Is there a better way to do this, so I don't need the delay?
March 31st, 2011 11:59am

That tends to happen, I remember someone having the same issue. Though I'm not sure what he did to fix it the likely issue is due to AD replication, it depends on what DC the mailbox server is looking. See if you can specify the enable-mailbox -domaincontroller parameter to target a specific DC and see if it makes a difference.James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 31st, 2011 8:00pm

Hi Can you choose the nearest AD to be default and try to do the setting again. In fact, I think 15 second delay is not big issue. 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.
April 1st, 2011 2:39am

Hi Do you have anything to update your issue ?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
April 6th, 2011 7:02am

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

Other recent topics Other recent topics