Link to home
Start Free TrialLog in
Avatar of qwert5905
qwert5905

asked on

Export a list of computer accounts in Active Directory.

I am looking for a way to export all computer accounts from Active Directory 2003. Thanks.
Avatar of LauraEHunterMVP
LauraEHunterMVP
Flag of United States of America image

dsquery computer > computers.txt
Avatar of SysExpert
There are also some great programs from

sysinternals.com ( Now owned by MS ).


I hope this helps !
As LauraEHunterMVP wrote, dsquery is a good option.
If you want to use the GUI "saved queries" is an option (can be found in 'active directory users and computers'). Create a query, run the query and save the output (export list) to a tab or comma delimited file.
Avatar of qwert5905
qwert5905

ASKER

Thanks for your input, however, none of these responses walk me through the steps. Can someone show the steps to create a query within Saved Queries, or how to use dsquery. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of LauraEHunterMVP
LauraEHunterMVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is great, minvis!

How can I access the query from a .NET application such as VB.NET 2005/2008?

Thanks
Bill