Thursday, April 30, 2015

Get all AD-User | PowerShell

Hi,

Today, I need to have a list for all my enabled Active Directory users.
So if you need to do this, this is the command I used :

 Get-ADUser -Filter * | where {$_.Enabled -eq "True"} | select Name | Sort-Object Name > listaduser.txt  

I hope this can help you.

Bye !

No comments:

Post a Comment