retrieves Active Directory information : Active Directory : Web Services C# Source Code


Custom Search

C# Source Code » Web Services » Active Directory »

 

retrieves Active Directory information








    


using System;
using System.DirectoryServices;

public class Example21_16 
{

  public static void Main() 
  {

    // connect to AD
    DirectoryEntry de = new DirectoryEntry(
      "WinNT://DomanName/MachineName", "Administrator", "Password");

    foreach(DirectoryEntry child in de.Children) 
    {
      Console.WriteLine(child.SchemaClassName + ": " + child.Name);
    }
  }

}




           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Web Services
» Active Directory