Powershell script to "Get" list of AD users, last login and creation date

 

Get-ADUser -Filter {Enabled -eq $True} -Property Created,LastLogonDate | Select-Object -Property Name, SAMAccountName, Created, LastLogonDate | export-csv C:\users.csv

Print   Email

Related Articles