19-3-2009 12:28:4
DirectoryEntry directoryEntry = new DirectoryEntry("WinNT://KHANH");
string userNames = "Users : ";
foreach (DirectoryEntry child in directoryEntry.Children)
{
if (child.SchemaClassName == "User")
{
userNames += child.Name + "</br>";
}
}
Response.Write(userNames);