'get the ldap path for the user using adsiedit and then run this using cscript ' e.g. ' cscript getEmailAddress.vbs > username_emailaddress.txt strUserLDAPPath = "LDAP://sdc-dc01.samedaycredit.com.au/CN=Elizabeth Groves,OU=Users,OU=SDC,DC=samedaycredit,DC=com,DC=au" strUserLDAPPath = "LDAP://sdc-dc01.samedaycredit.com.au/CN=John Foley,OU=Users,OU=SDC,DC=samedaycredit,DC=com,DC=au" set oUser = getobject(strUserLDAPPATH) oProxyAddresses = oUser.get("proxyAddresses") for each i in oProxyAddresses wscript.echo i next