S
Stanimir Angeloff
Hello there,
How can I get a list of all computers in the local network? The problem is
that it shouldn't use Active Directory. I tried this code (found at:
microsoft.public.dotnet.framework)
DirectorySearcher src = new DirectorySearcher("(objectClass=computer)");
foreach(SearchResult res in src.FindAll())
{
Console.WriteLine(res.Path);
}
But I get this error:
The specified domain either does not exist or could not be contacted
Thank you in advance
How can I get a list of all computers in the local network? The problem is
that it shouldn't use Active Directory. I tried this code (found at:
microsoft.public.dotnet.framework)
DirectorySearcher src = new DirectorySearcher("(objectClass=computer)");
foreach(SearchResult res in src.FindAll())
{
Console.WriteLine(res.Path);
}
But I get this error:
The specified domain either does not exist or could not be contacted
Thank you in advance