A neat little command to dump out the whole of Active Directory users email addresses to the root of c: can be found below :-
dsquery * -filter "(&(objectCategory=person)(objectClass=user)(mail=*))" -attr mail displayname -limit 0 > c:\email_addresses.txt