Solved

Domain Computer List

Posted on 2007-03-19
5
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 71

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

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. …
Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 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