I have this small piece of code to connect to an exchange 5.5 server through LDAP:
The .name property returns a value like "cn=userid". How can I tell what properties I can view and/or edit besides the .name? What I'm trying to accomplish is to change the display name (LDAP: cn) and hide from address book (LDAP: Hide-From-Address-Book) properties for disabling Exchange 5.5 email accounts. Am I going about this wrong or can someone point me to some examples?
We are running Exchange 5.5 on a NT4.0 domain.
Code:
Dim strMailBoxPath, strMailServer
Dim strNewDisplayName, objRecip, objMember
strMailServer = "server"
strMailBoxPath = "o=myO/ou=myOU/cn=Recipients"
Set objRecip = GetObject("LDAP://" & strMailServer & "/" & strMailBoxPath)
For Each objMember In objRecip
WScript.Echo "Name: " & objMember.Name
Next
The .name property returns a value like "cn=userid". How can I tell what properties I can view and/or edit besides the .name? What I'm trying to accomplish is to change the display name (LDAP: cn) and hide from address book (LDAP: Hide-From-Address-Book) properties for disabling Exchange 5.5 email accounts. Am I going about this wrong or can someone point me to some examples?
We are running Exchange 5.5 on a NT4.0 domain.