How to Extract users from AD using powershell

How to Extract users from AD

 

User Powershell:

 

Get-ADuser -Filter {(Enabled -eq $True)} -Properties * | Select-Object name, lastlogon | export-csv -path EnabledUsers.csv

 

Get-ADUser -filter * -Properties * | export-csv -path AllUsers.csv

 

 

Kon Belieu

Tags:

Comments are closed

Latest Comments

No comments to show.