I am creating users and their mailboxes When it comes to creating the
mailbox everything looks like it works
if I look in Users and Computers in AD. But no mailbox is actually created
on the Exchange server I specify. I believe I have everything set up
correctly, but I was wondering that the problem might be that because I am
creating the user account and mailbox at the same time the Exchange server
doesn't recognize the domain account when I try to create it. Does anybody
have any ideas what my problem could be. Here's my code.
Set objUser = CreateObject(User.ADsPath)
Set objMailbox = objUser
objMailbox.CreateMailbox "LDAP://" & ExchangeServer & "/" & _
"CN=Mailbox Store (" & ExchangeServer & ")," &
_
"CN=First Storage Group," & _
"CN=InformationStore," & _
"CN=" & ExchangeServer & "," & _
"CN=Servers," & _
"CN=Peoria," & _
"CN=Administrative Groups," & _
"CN=Company," & _
"CN=Microsoft Exchange," & _
"CN=Services," & _
"CN=Configuration," & _
"DC=Domain,DC=Local"
objUser.SetInfo