Riddhi Valecha

Riddhi Valecha

  • 444
  • 3.3k
  • 412.6k

Active Directory Users Data

Jun 6 2016 3:13 PM
Hi all..<br />I got windows users name by following code -<br /><br />public void DNames()<br />{<br />List&lt;String&gt; cnames = new List&lt;String&gt;();<br />System.DirectoryServices.DirectoryEntry ent = new System.DirectoryServices.DirectoryEntry("WinNT://in.abc.com")<br />foreach (System.DirectoryServices.DirectoryEntry nn in ent.Children)<br /> cnames.Add(nn.Name);<br />}<br />------<br />How to get all emp detail with this domain - in.abc.com - without using LDAP...<br /><br />Emp details - First Name, Last Name, Code, Leaving Date, Office Location, Email etc.<br /><br />Please help !!

Answers (14)