Powershell – Audit Active Directory Users Script
- Posted by
- Posted on September 21, 2026
- Computers, IT Support, Windows
- No Comments.
PowerShell can be used to quickly export a list of Active Directory users for auditing, documentation, or account reviews.
The following command retrieves all Active Directory user accounts and exports several commonly reviewed properties to a CSV file:
Get-ADUser -Filter * -Properties DisplayName,UserPrincipalName,Enabled,Department,Title |
Select-Object Name,DisplayName,UserPrincipalName,Enabled,Department,Title |
Export-Csv "C:\Temp\AD_Users.csv" -NoTypeInformation
Requirements
The Active Directory PowerShell module must be installed and available on the computer running the command. The account running the command must also have permission to read Active Directory user information.
Make sure the C:\Temp folder exists before running the command.
Information Included
The exported CSV contains:
- Name
- Display Name
- User Principal Name
- Account enabled or disabled status
- Department
- Job title
The resulting file is saved as:
C:\Temp\AD_Users.csv
How the Command Works
Get-ADUser -Filter * retrieves all Active Directory user accounts.
The -Properties parameter requests additional attributes that are not returned by Get-ADUser by default.
Select-Object determines which fields are included in the final report.
Export-Csv writes the results to a CSV file that can be opened in Excel or another spreadsheet application.
Recent Posts
- WSReset – What it is and How to Use it
- Powershell – Audit Active Directory Users Script
- 10 Different Ways to Start Task Manager
- How to Repair Microsoft Edge WebView2 Runtime in Windows 11
- What Is the UUP Dump Website and How Does It Work?
Archives
- September 2026
- May 2026
- February 2026
- January 2026
- December 2025
- October 2025
- September 2025
- August 2025
- July 2025
- June 2025
- February 2025
- January 2025
- July 2022
- February 2022
- January 2021
- July 2020
- May 2020
- February 2020
- December 2019
- August 2019
- January 2019
- July 2018
Categories
- Audio / Video
- Computers
- Hacking
- IT Support
- Lab
- Linux
- Mac OS
- Management
- Microsoft Applications
- Networking
- Printer
- Router
- Servers
- Switch
- Uncategorised
- Video Conferencing
- Virtualization
- Website
- Windows
