I'm using this code. I just want to navigate AD from vb.net. I dont
want to search any criteria. Just watch ou's and the users of the
ou's. This is such an easy thing, but I can't manage! I'm giong
crazy:)
objConnection.Provider = "ADsDSOObject"
objConnection.Open("Active Directory Provider")
objCommand.ActiveConnection = objConnection
cmdText = "<LDAP://xxx.net>;(objectClass=*);" & _
"ADsPath, objectclass;subTree"
objCommand.CommandText = cmdText
objRecordSet = objCommand.Execute
objRecordSet.MoveFirst()
Do Until objRecordSet.EOF
TextBox1.Text += objRecordSet.Fields(0).Value() & vbCrLf
objRecordSet.MoveNext()
Loop