Get all User Details (Displayname EmailAddress Department OU Account Status)

Below command will provide - 

Display Name

SAM Account Name

Email Address

Department

OU Name

Account Status

Command -

Get-User -ResultSize Unlimited | Select displayname,SamAccountName,WindowsEmailAddress,Department,OrganizationalUnit,RecipientType,RecipientTypeDetails | Export-csv c:\Himanshu.csv

No comments: