Great tool, am using it a lot.
One thing I noticed with the _ADGetObjectAttribute
If there are multible values for the attribute it returns empty string.
It would be great to get all the results in array.
Have been trying to do this but not understanding the com stuff.
Here is a example for what I am trying to do in vbs
Set MyUser = GetObject ("LDAP://CN=Administrator,CN=Users,DC=domainname,DC=local")
Secondary = ""
For each email in MyUser.proxyAddresses
If Left (email,5) = "SMTP:" Then
WScript.Echo "Primary e-mail address: " & Mid (email,6)
ElseIf Left (email,5) = "smtp:" Then
Secondary = Secondary & "," & Mid (email,6)
End If
Next
If Secondary <> "" Then WScript.Echo "Other e-mail addresses: " & Mid (Secondary,2)