Server 2008 – Export Active Directory users to excel

The following command can be used to extract a complete list of users objects in your Active Directory environment.

csvde -f C:\ADUsers.csv -r objectClass=user

 

  1. To run open the PowerShell console (or command prompt)
  2. PowerShell-ExtractUsers1
  3. Then enter the command listed above
  4. PowerShell-ExtractUsers2
  5. The list will be saved to C:\ADUsers.csv