1: 2: 3: 4:
Set objUser = GetObject("LDAP://CN=Sam Doe,OU=Some Folder,DC=YourDomain,DC=local") WScript.Echo objUser.Get("legacyExchangeDN")