Hi all.<br /><br />I have ...<br /><br />string[] users = new string[] {"A", "B", "C", "D", "E", "F"}<br /><br />How do I get all properties in ResultPropertyCollection, ResultPropertyValueCollection -<br />of all the users in the users array..<br /><br />Please help me in making the loop....<br /><div></div><div>Also, Please help me out in my other post -</div><div> </div><div>http://www.c-sharpcorner.com/Forums/active-directory-users-data</div><div> </div><div>I have to get all details without LDAP Server...</div><div> </div><div>I want the data in the following format -</div><div> <p>I have a domain – abc.xyz.com (Right Click on My Computer -> Domain)</p> <table style="border-collapse:collapse;none;solid windowtext .5pt;1184;0in 5.4pt 0in 5.4pt" border="1" cellpadding="0" cellspacing="0"> <tbody><tr style="0;yes"> <td style="42.45pt;solid windowtext 1.0pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="57"> <p style="0in;.0001pt; normal">HostName</p> </td> <td style="48.95pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="65"> <p style="0in;.0001pt; normal">DomainName</p> </td> <td style="36.7pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="49"> <p style="0in;.0001pt; normal">LastLogin</p> </td> <td style="37.35pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="50"> <p style="0in;.0001pt; normal">Bad Password</p> </td> <td style="60.45pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="81"> <p style="0in;.0001pt; normal">Email</p> </td> <td style="25.0pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="33"> <p style="0in;.0001pt; normal">Emp Code</p> </td> <td style="39.65pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="53"> <p style="0in;.0001pt; normal">EmpName</p> </td> <td style="33.15pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="44"> <p style="0in;.0001pt; normal">Full Name</p> </td> <td style="47.9pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="64"> <p style="0in;.0001pt; normal">Depaartment</p> </td> <td style="39.1pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="52"> <p style="0in;.0001pt; normal">Offlice Location</p> </td> <td style="35.75pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="48"> <p style="0in;.0001pt; normal">Manager</p> </td> <td style="32.35pt;solid windowtext 1.0pt; none;solid windowtext .5pt; solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="43"> <p style="0in;.0001pt; normal">Contact</p> </td> </tr> <tr style="1"> <td style="40.6pt;solid windowtext 1.0pt;none;solid windowtext .5pt;solid windowtext .5pt; 0in 5.4pt 0in 5.4pt" valign="top" width="54"> <p style="0in;.0001pt; normal">DT0012345</p> </td> <td style="49.65pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="66"> <p style="0in;.0001pt; normal">Abc.def</p> </td> <td style="37.15pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="50"> <p style="0in;.0001pt; normal">10-feb-2015 6:7:44</p> </td> <td style="37.8pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="50"> <p style="0in;.0001pt; normal">4</p> </td> <td style="26.25pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="35"> <p style="0in;.0001pt; normal">
[email protected]</p> </td> <td style="25.25pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="34"> <p style="0in;.0001pt; normal">E1</p> </td> <td style="40.2pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="54"> <p style="0in;.0001pt; normal">Mahesh Bhatt</p> </td> <td style="27.6pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="37"> <p style="0in;.0001pt; normal">Mahesh Bhatt</p> </td> <td style="48.55pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="65"> <p style="0in;.0001pt; normal">Database </p> </td> <td style="34.85pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="46"> <p style="0in;.0001pt; normal">Jamnagar, Gujarat</p> </td> <td style="45.2pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="60"> <p style="0in;.0001pt; normal">Rajesh Bhatt</p> </td> <td style="32.7pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="44"> <p style="0in;.0001pt; normal">4567890</p> </td> </tr> <tr style="2;yes"> <td style="40.6pt;solid windowtext 1.0pt;none;solid windowtext .5pt;solid windowtext .5pt; 0in 5.4pt 0in 5.4pt" valign="top" width="54"> <p style="0in;.0001pt; normal">DT0056789</p> </td> <td style="49.65pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="66"> <p style="0in;.0001pt; normal">Fhi.jkl</p> </td> <td style="37.15pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="50"> <p style="0in;.0001pt; normal">10-feb-2015 5:5:5</p> </td> <td style="37.8pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="50"> <p style="0in;.0001pt; normal">2</p> </td> <td style="26.25pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="35"> <p style="0in;.0001pt; normal">
[email protected]</p> </td> <td style="25.25pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="34"> <p style="0in;.0001pt; normal">E2</p> </td> <td style="40.2pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="54"> <p style="0in;.0001pt; normal">Shruti Shah</p> </td> <td style="27.6pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="37"> <p style="0in;.0001pt; normal">Shruti Shah</p> </td> <td style="48.55pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="65"> <p style="0in;.0001pt; normal">Testing</p> </td> <td style="34.85pt;none; none;solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="46"> <p style="0in;.0001pt; normal">Silvasa , Gujarat</p> </td> <td style="45.2pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="60"> <p style="0in;.0001pt; normal">Rajesh Bhatt</p> </td> <td style="32.7pt;none;none; solid windowtext 1.0pt;solid windowtext .5pt;solid windowtext .5pt;solid windowtext .5pt;0in 5.4pt 0in 5.4pt" valign="top" width="44"> <p style="0in;.0001pt; normal">8765443322</p> </td> </tr> </tbody></table> </div><div> </div><div> </div><div>Requirement is - I have to make an online application that shows the system status on continuous basis of all users, along with their details ...<br />Just like in news channels, news keep flashing , I have to keep flashing the data on continuous basis of all users ...<br />This will include everything - Last login date, manager name, email id, emp code, etc ...<br />User/Domain Last Login Date Time Last Logout Date Time Manager Emp CodeAbc.xyz.com 1-jan-2016 1:1:1 2-jan-2016 3:3:3 Mahesh Bhatt 12345<br />User Properties - Emp Code, email, manager name, email , department, location, company joining date, company leaving date(if applicable), etc </div><div> </div><div>Also, if possible, all the domain names in a network... </div><div> </div><div>Please help...its urgent...</div>