troubleshooting Question

creating an Exchage mailbox via vbs right after creating an AD acct.

Avatar of pHOdAT
pHOdATFlag for United States of America asked on
Exchange
2 Comments1 Solution438 ViewsLast Modified:
Ok, little frustrated here. I have successfuly created a script to create AD users. I poked around here,google,msdn, etc to try to find a way to create the exchange mailbox along with it. The following is my code:

sMBXStoreDN = "CN=Mailbox Store (gcbmail1),CN=First Storage Group," & _
   "CN=InformationStore,CN=gcbmail1,CN=Servers,CN=First Administrative Group," & _
   "CN=Administrative Groups,cn=First Organazation,CN=Microsoft,CN=Microsoft Exchange," & _
   "CN=Services,CN=Configuration,DC=gcbhs,DC=local"

Set objMailbox = objUser
 objMailbox.CreateMailbox sMBXStoreDN
objUser.SetInfo

When I execute this I get "object does not exist on this server". My mail server's name is gcbmail1. I can't figure out the DN path to create mailbox's. Can anyone help?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros