Link to home
Start Free TrialLog in
Avatar of jaya31
jaya31Flag for United States of America

asked on

Export ACTIVE Users Email Address and Name

Hi,

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"
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jaya31

ASKER

That was perfect. Thanks very much.