Solved

Domain Computer List

Posted on 2007-03-19
5
214 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now