Active Directory – Esportare Lista Utenti – dsquery

Un utile comando per ottenere l’elenco di tutti gli utenti in active direcory è il seguente, da lanciare in una shell sul PDC:

C:\>dsquery user -limit 0 > utenti.txt

Nel caso si vorrebbero tutti i dettagli delle proprietà dell’utente, si può procedere invece con il comando:

C:\>dsquery * -limit 0 -filter "&(objectClass=User)(objectCategory=Person)" -attr * >>file1.txt
This entry was posted in Network, Operating Systems, Windows. Bookmark the permalink.