Walkthrough: Adding Active Directory Objects

J

Jack Russell

I am trying to get the example in this help topic to work

The only change that I have made is :

entryPc.Path = "WinNT://" + Environment.UserDomainName + "/" +
Environment.MachineName
because I did not know my domain name (which seems to be the same as
my machine name)

The program throws an exception on
For Each child In entryPC.Children

The exception is

An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in
system.directoryservices.dll

Additional information: The group name could not be found

Does this only work for some networks or is the example wrong?/

Jack Russell
 
J

Jack Russell

Its ok I got it to work by taking out the domain name (I am sure that I
tried that before)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top