Solved

Domain Computer List

Posted on 2007-03-19
5
217 Views
Last Modified: 2011-09-20
This question is in conjunction with http://www.experts-exchange.com/Networking/Windows_Networking/Q_22447515.html?cid=239#a18724806
for fairness of awarding points to AnthonyP9618

Is there any way I could export a list of domains computers from the domain controller???
0
Comment
Question by:gvector1
5 Comments
 
LVL 17

Expert Comment

by:kadadi_v
ID: 18748645
Means active directory integrated with dns server configured on the windows server...?
When you goto the active directory users & computers in administrator tools (run as admin)then right click to computers and clecik on export list and save as a txt file...


Regards,

V.K.
0
 
LVL 70

Expert Comment

by:Chris Dent
ID: 18748682

Sure, are you happy with dsquery? Nice and straight forward :)

You'll have to clean it up a little afterwards, two find and replace should do. One to get rid of the spaces at the start, the second to get rid of the $.


dsquery computer -limit 0 | dsget computer -samid > outputfile.txt


I can give you alternatives involving VbScript and such as well if you wish, depends a little on what your aim is.

Chris
0
 
LVL 11

Accepted Solution

by:
AnthonyP9618 earned 500 total points
ID: 18753014
If you want a scripted solution you could use what I posted in the other question:

dsquery computer ou=sales,dc=microsoft,dc=com > C:\file.txt

Or.. As RobWill suggested, right clicking on the Computers OU (If that's where all your computers are located at) and choosing Export List will work as well.

Or.. are you looking for something more robust?
0
 

Author Comment

by:gvector1
ID: 18755943
Those worked great, I ended up using SpiceWorks to export a list to Excel, so I could remove columns and end up with a list of just machine names.  That way I could execute a command and have a file with a list of machine names to use as a parameter.  

Thanks
Kendal
0
 
LVL 11

Expert Comment

by:AnthonyP9618
ID: 18759659
Kendal,

Great!  

-Anthony
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question