I have slightly modified this script and added a few lines to get information like the email address and the exchange home server of the user using the mail and msExchHomeServerName attributes.
You can download the modified script here.
How the script works:
It queries Active Directory using LDAP for a bunch of known user attributes and writes them to a .csv file in the same directory as the script. The file is will be named yyyymmdd_audit.csv
NOTE: I am NOT the original author of this script. Please give all credit to Paul Bergson who is an MVP for Directory