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.
- Log on to your Domain Controller
- Open a command prompt
- 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