Following lists all existing properties for the builtin administrators
group, and a list of all members in the "member" collection.
using(DirectoryEntry domain = new
DirectoryEntry("LDAP://domainName/CN=administrators,cn=builtin,DC=....,DC=....,DC=.. ..",
"domain\\user", "pwd"))
{
foreach(string s in domain.Properties.PropertyNames)
{
Console.WriteLine(s + "\t\t" + domain.Properties[s].Value);
if (s == "member")
{
foreach(string ss in domain.Properties[s].Value as object[])
{
Console.WriteLine("-- {0}", ss);
}
}
}
}
Following sample lists all current properties of the local administrator.
using(DirectoryEntry domain = new
DirectoryEntry("WinNT://acer1/administrator,user"))
{
foreach(string s in domain.Properties.PropertyNames)
{
Console.WriteLine(s + "\t\t" + domain.Properties[s].Value);
}
}
Willy.
<ag*******@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hi all,
I have a directory entry object the specifies "members" in its
properties collection to retrieve:
groupEntry.Properties("member")
Instead of just using "member" to return members I am trying to find a
list of all possible values that Properties takes. Can't seem to
locate it in MSDN or Google.
???