<#
Exports a listing of all enabled Active Directory users
Author: Brandon Lanczak
Date: 03-20-2023
Note: Adjust properties as needed.
#>
#
Get-ADUser -LDAPFilter "(objectCategory=User)" -Properties Enabled, Name, EmailAddress, Title | Where { $_.Enabled -eq $True } | Select-Object Name, EmailAddress,Title, Enabled | Sort-Object -Property Name | Export-CSV -NoType 'C:\Temp\blah mm-dd-yyyy.csv'