Riddhi Valecha

Riddhi Valecha

  • 608
  • 3k
  • 274.3k

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 !!

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (14)