Solved

Domain Computer List

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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

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

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

16 Experts available now in Live!

Get 1:1 Help Now