Skip to content

Instantly share code, notes, and snippets.

@ffcommax
Created June 26, 2019 09:42
Show Gist options
  • Save ffcommax/e39c31acaeb50e936863f17e70cbd444 to your computer and use it in GitHub Desktop.
Save ffcommax/e39c31acaeb50e936863f17e70cbd444 to your computer and use it in GitHub Desktop.
Export-Users_TO_CSV
Import-Module ActiveDirectory
Get-ADUser -Filter * -Properties * | Select -Property EmailAddress,GivenName,Surname,DisplayName,Title,Department,Office,OfficePhone,MobilePhone,Fax,StreetAddress,City,State,PostalCode,Country | Export-CSV "C:\\users\\public\\ADusers.csv" -NoTypeInformation -Encoding UTF8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment