mercredi 7 novembre 2012

how to display all domain users with Powershell Active Directory module


It's so simple to extract it with Active Directory Module.
Let's see it..








 Code :

 Get-ADUser -Filter * -Searchbase "dc=votredomaine,dc=no-ip,dc=org"  | FT

 Résultat : 



It is also possible to extract it on csv format, here we extract all users of an O.U.




Get-ADUser -Filter * -Searchbase "ou=users, dc=votredomaine,dc=no-ip,dc=org" |Export-CSV "c:\toto\monfichier.csv"  -notypeinformation


Aucun commentaire: