We help IT Professionals succeed at work.
Get Started

error 800a01b6 - When creating mailbox from ASP web page

AQNSYS asked
Last Modified: 2013-12-25

I've created an ASP web page to create Active Directory user accounts.

The web page is running on a Server 2003 SP2 IIS 6 installation.
The Exchange Server is 2003 w/SP2 is running in a different server.

The Exchange System Manager is running on the web server.

The web page uses ADSI code to create a user, and then CDO code to create
the mailbox e.g.

Set objRootLDAP = GetObject("LDAP://rootDSE")
strDefaultNamingContext = objRootLDAP.Get("defaultNamingContext")
Set objContainer = GetObject("LDAP://" & strContainer & objRootLDAP.Get("defaultNamingContext"))
Set objUser = objContainer.Create("User", "cn=" & strUser)

objUser.Put <set all the user info>

objuser.CreateMailbox <string representing MTA>

Now, when I connect to this site using my domain admin credentials, it
works fine. However, if a user I have created for this purpose connects to this site, the user account is successfully created in AD but upon reaching the "CreateMailbox" line, he gets

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method

The person who is going to be using this page can't have full Administrative rights over the domain, only User and Mailbox creation rights.

Thanks for any help you can provide me!
Watch Question
Domain Architect
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE