Powershell – Export all Active Directory User Information to CSV

powershell

Last updated on March 30th, 2023 at 05:08 pm

Read Time:48 Second

If you need to export all Active Directory user information to CSV, then you can use a simple Powershell script to carry this out.

First Import the Active Directory module:

Import-Module ActiveDirectory

Then get the user information from Active Directory. For the example below we are just going to grab all information, hence the * wildcard, but you can trim this down if you want to.

Get-ADUser -Filter * -Properties * | export-csv C:\TGH\ADUserInformation.csv

The export-csv part will then export all the user information into a CSV format. Just remember to change the proceeding path to where you want to save the CSV file.

Go to the location where you exported the CSV file to and open it using Excel or Notepad. You should now see all of the Active Directory user information.

Feedback

If you do have any questions or feedback on this guide, please feel free to leave us a message below in our comments section.

Click to rate this post!
[Total: 1 Average: 5]

Free Subscription

If you want to be notified when we post more quality guides like this one, sign up to our free subscription service and you will receive an email when a new post is live.

Join 441 other subscribers.

No need to worry, we will not be filling your inbox with spam and you can unsubscribe anytime you like.


Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.