I need to export Active\Enabled users from AD with email address to a csv file. Used the Powershell script below which works, but gives every user disabled\enabled. I just need the enabled users. Thanks in advance for you help
Get-ADUser -Filter * -Properties DisplayName, EmailAddress, Title | select DisplayName, EmailAddress, Title | Export-CSV "C:\Scripts\Email_Addresses.csv"