Avatar of gvector1
gvector1

asked on 

Domain Computer List

This question is in conjunction with https://www.experts-exchange.com/questions/22447515/DNS-Change.html?cid=239&anchorAnswerId=18724806#a18724806
for fairness of awarding points to AnthonyP9618

Is there any way I could export a list of domains computers from the domain controller???
Windows Networking

Avatar of undefined
Last Comment
AnthonyP9618
Avatar of kadadi_v
kadadi_v
Flag of India image

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.
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


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
ASKER CERTIFIED SOLUTION
Avatar of AnthonyP9618
AnthonyP9618
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of gvector1
gvector1

ASKER

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
Avatar of AnthonyP9618
AnthonyP9618
Flag of United States of America image

Kendal,

Great!  

-Anthony
Windows Networking
Windows Networking

The Windows operating systems have distinct methodologies for designing and implementing networks, and have specific systems to accomplish various networking processes, such as Exchange for email, Sharepoint for shared files and programs, and IIS for delivery of web pages. Microsoft also produces server technologies for networked database use, security and virtualization.

51K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo