jbliss02
10/13/2015 - 8:09 PM

get network computer names

get network computer names

List<String> computerNames = (from DirectoryEntry availDomains in winNtDirectoryEntries.Children
                              from DirectoryEntry pcNameEntry in availDomains.Children
                              where pcNameEntry.SchemaClassName.ToLower().Contains("computer")
                              select pcNameEntry.Name).ToList();