FancyPrairie
Programmer
I created a class in vba (Access). I would like to duplicate the class in vbscript. However, I recieve the error ActiveX component can't create object "LDAP://rootDSE" on the GetObject command
What's wrong with the following code?
What's wrong with the following code?
Code:
Class clsMMC_ActiveDirectory
'*************************
'* Public Declarations *
'*************************
Dim mstrsAMAccountName
Dim mobjUser
Dim mobjRootDSE
'**********************************
'* Class Initialize / Terminate *
'**********************************
Private Sub Class_Initialize()
Set mobjRootDSE = GetObject("LDAP://rootDSE") ' bind to the rootDSE for portability
End Sub