Archive

Posts Tagged ‘active directory’

How to export email addresses from Active Directory

April 21st, 2010 No comments

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