S
Stanimir Angeloff
Hello everybody,
How can I get the names of all computers in my local network? I tried
this code (microsoft.public.dotnet.general - Listing neighbor
computers):
DirectorySearcher src = new
DirectorySearcher("(objectClass=computer)");
foreach(SearchResult res in src.FindAll())
{
Console.WriteLine(res.Path);
}
But I get the following error:
The specified domain either does not exist or could not be contacted.
Thank you in advance.
How can I get the names of all computers in my local network? I tried
this code (microsoft.public.dotnet.general - Listing neighbor
computers):
DirectorySearcher src = new
DirectorySearcher("(objectClass=computer)");
foreach(SearchResult res in src.FindAll())
{
Console.WriteLine(res.Path);
}
But I get the following error:
The specified domain either does not exist or could not be contacted.
Thank you in advance.