Skip to content

Exporting a list of all computers from Active Directory

This article was been published more than 6months ago. The information contained herein may be outdated.

Last week I covered how you can use the DSQuery command to export members of a given AD Group. This week, on a related note, I will cover how to use the same basic command to export all computer accounts in Active Directoy.

  1. Log on to your Domain Controller
  2. Open a command prompt
  3. Enter the command dsquery computer -limit %####% > filename.txt, substituting %####% for the maximum number of hits you want (if you leave this out, the default is 100), and replacing filename with something logical if you so desire

One Comment

Leave a Reply