My computer comes under the ABC domain. Whenver i use the following code to list all the computers under the ABC domain, my machine is not listed. Am I missing out on something ? Kindly help
using System.DirectoryServices;
public void PrintComputersInDomain (string domainName)
{
DirectoryEntry de = new DirectoryEntry ("LDAP://" + domainName);
de.Children.SchemaFilter.Add ("computer");
foreach (DirectoryEntry c in de.Children)
{
Console.WriteLine (c.Name);
}
}