public static string[] GetServers() { var directoryServiceClientRef = new DirectoryServiceClient(); //directoryServiceClientRef.ClientCredentials.Windows.ClientCredential.UserName = "******"; //directoryServiceClientRef.ClientCredentials.Windows.ClientCredential.Password = "******"; //directoryServiceClientRef.ClientCredentials.Windows.ClientCredential.Domain = "ADIR"; return directoryServiceClientRef.GetServers(); }