Hi all,
I'd like to list email addresses, telephone numbers, etc. of the Exchange
5.5 (NT4) users, but I can't access these properties.
Anyway I can list some other properties like 'PasswordAge', 'LoginHours',
etc.
My c# code are:
DirectoryEntry Container = new DirectoryEntry("WinNT://myDomain", "myName",
"myPwd");
try {
foreach(DirectoryEntry child in Container.Children) {
if((child.SchemaClassName == "User") && (child.Name == "myName")) {
System.DirectoryServices.PropertyCollection pcoll =
child.Properties;
foreach(string sc in pcoll.PropertyNames)
TextBox1.Text += "\r\n" + sc + ": " + pcoll[sc].Value;
}
}
} catch(Exception ex) {
}
Can anybody help me?
Thanks in advance,
elek