Question

Locked

Active Directory property "DefaultNamingContext" giving error

By saimalakhan ·
I have written a very simple code in VBA which is creating an Active Directory Account by picking the information from the Excel worksheet. The actual code is as follows:

Set rootDSE = GetObject("LDAP://Great")

DomainContainer = "LDAP://" & rootDSE.Get("defaultNamingContext")

It's giving me an error at the second line and the error is "The directory property cannot be found in the cache". The account I am logged in as in the development machine is a member of the domain admins.

Any one has any idea what might be the problem?

much appreciated.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums