Varga Attila
Varga Attila

Reputation: 1

Listing users with multiple parameters by Display name

So the task I'm facing seems harsh to me, I barely started using PowerShell too. I need to create a detailed List of all users by their display name, which means it begins with " x- " I need their details, including user creation date, enabled/disabled, last login date, and company can you help a fellow beginner out?

Upvotes: 0

Views: 139

Answers (1)

Drew
Drew

Reputation: 4020

You should try googling and providing more information. It appears you have not completed any searching.

A simple "Get all users powershell" into google would bring you to Get-ADUser

Get-ADUser -Filter * -Properties * | Export-Csv "$env:USERPROFILE\Desktop\UserData.csv" -NoTypeInformation

# This gets all users in AD and all properties
Get-ADUser -Filter * -Properties *

# This will send those results to a CSV file on your desktop     
| Export-Csv "$env:USERPROFILE\Desktop\UserData.csv" -NoTypeInformation

Upvotes: 1

Related Questions