Export AD Computers’ names

You can very simply export all computers in AD to txt file for example like this:</p>
this command exports 10000 computers
dsquery computer -limit 10000 >C:computers.txt
next command exports 10000 computers‘ SAMIDs attributes of computers located in organization unit Workstations.
dsquery computer ou=workstations,dc=domain,dc=local -limit 10000 -o samid >c:computers.txt
for more information run dsquery /? and for detailed informations about object do combine dsquery with dsget…
Written on March 3, 2010