If you need a quick way to export all user accounts in Active Directory to a file, follow these simple steps.
IMPORTANT NOTE: You must be logged in to a Domain Controller to enumerate all AD accounts, if you run this locally/on a non-domain controller, it will enumerate only local accounts on that machine.
- Windows 2000 Server
- Windows 2003 Server
- Windows 2008 Server
- Windows 2012 Server