Click to See Complete Forum and Search --> : Bind to Active Directory using VBScript


klanga2049
06-15-2011, 10:39 AM
I am trying to create a script to manage Active Directory.

I have a VBScript working when I just run MyVBScript.vbs

However, when I embed this same script in a HMTL page I get an error.

The error is on this line:
Set objRootDSE = GetObject("LDAP://RootDSE")
and I have also tryed:
Set objRootDSE = GetObject("LDAP://myDomain.com/RootDSE")

Each time I get this error: "ActiveX component can't create object".

I have done extensive Googling but cannot find a solution.

How do I fix this?

Thank you!