Question : Active Directory Query - Servers Only - DG

Hi! I'm struggling trying to pull a list of SERVERS ONLY (Member servers and Domain Controllers) from Active Directory. I am on a network that has 7 different domains - with two way trusts between all domains. I have read only access to all the relevant AD's, and can log on to one member server on one of the domains which has Active Directory Services installed. I need a list of all SERVERS in each of the SEVEN domains. Any suggestions on the easiest way to achieve this?
Many thanks in advance.

Answer : Active Directory Query - Servers Only - DG

Just run Active Directory Users and Computers console locally. Click right mouse button on domain name and choose find.
From combobox select "Custom search" and click on "Advanced" tab

Paste this code there and click "Find now"

(objectCategory=Computer)(objectClass=Computer)(operatingSystem=*Server*)

it will display all server in domain. You can change each domain in "Find ... in ..)

to get all DCs in domain(s) you have to logon to particular member server with ADS installed and type in cmd command

dsquery server -o rdn
Random Solutions  
 
programming4us programming4us