to view all DCs in the forest
* repadmin /viewlist *
to view all DCs in the domain
* run nslookup and configure set type=srv and query for
_ldap._tcp.dc._msdcs.<yourdomain>.<tld> (per domain)
* NLTEST /DCLIST:<DomainName>
* netdom query dc
* run replmon and ask for "show domain controllers in domain"
to view all DCs that have the GC flag checked (all DCs in the forest will be
returned and the DC with the GC flag enabled will have the IS_GC option)
* repadmin /options *
to view all DCs that have the GC flag checked
* run replmon and ask for "show global catalog servers in the enterprise"
* run nslookup and configure set type=srv and query for
_ldap._tcp.gc._msdcs.<yourdomain>.<tld> (per forest)
most options will give you the server names, but only NSLOOKUP returns the DC
name and its Ip address
with all you may still need to tweak the output in the way you want to see it
Cheers,
Jorge
________________________________
From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx on behalf of Harding, Devon
Sent: Tue 11/29/2005 10:43 PM
To: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: [ActiveDir] GC list
What's the easiest way to get a list of ALL my DC's and GC's in my forest along
with IP address?
Devon Harding
Windows Systems Engineer
Southern Wine & Spirits - BSG
954-602-2469
________________________________
__________________________________
This message and any attachments are solely for the intended recipient
and may contain confidential or privileged information. If you are not
the intended recipient, any disclosure, copying, use or distribution of
the information included in the message and any attachments is
prohibited. If you have received this communication in error, please
notify us by reply e-mail and immediately and permanently delete this
message and any attachments. Thank You.
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.
<<winmail.dat>>
|