14
Answers

Active Directory Users Data

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)