| Author | Messages | |
dharding
Posts:24
 | | 11/29/2005 9:44 AM |
| 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 recipientand may contain confidential or privileged information. If you are notthe intended recipient, any disclosure, copying, use or distribution ofthe information included in the message and any attachments isprohibited. If you have received this communication in error, pleasenotify us by reply e-mail and immediately and permanently delete thismessage and any attachments. Thank You. | | | |
| ZJORZ
Posts:100
 | | 11/29/2005 10:52 AM |
| ________________________________
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.
> | | | |
| tonyszko
Posts:46
 | | 11/29/2005 11:25 AM |
| Harding, Devon wrote:
What™s the easiest way to get a list of ALL my DC™s and GC™s in my
forest along with IP address? Quickest way will be to use nslookup:
nslookup -q=SRV _ldap._tcp.dc._msdcs. - for DCs
nslookup -q=SRV _ldap._tcp.gc._msdcs. - for GCs --
Tomasz Onyszko
http://www.w2k.pl
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ | | | |
| activedirsmaporg
Posts:0
 | | 11/30/2005 1:12 AM |
| Note instead of repadmin /options *, look for GC flag, you can run
repadmin /viewlist gc:
Gives only all GCs in your forest ... something I thought would probably
be useless when I implemented it.
Cheers,
-BrettSh [msft - ESE - SDE]
On Tue, 29 Nov 2005, Almeida Pinto, Jorge de wrote:
> 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.. (per domain)
> * NLTEST /DCLIST:
> * 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.. (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.
>
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ | | | |
| davidadner
Posts:0
 | | 11/30/2005 1:31 AM |
| How about making /options work with /csv...? :)
> -----Original Message-----
> From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
> [mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Brett Shirley
> Sent: Tuesday, November 29, 2005 7:11 PM
> To: ActiveDir@xxxxxxxxxxxxxxxxxx
> Subject: RE: [ActiveDir] GC list
> > Note instead of repadmin /options *, look for GC flag, you can run
> > repadmin /viewlist gc:
> > Gives only all GCs in your forest ... something I thought
> would probably be useless when I implemented it.
> > Cheers,
> -BrettSh [msft - ESE - SDE]
> > On Tue, 29 Nov 2005, Almeida Pinto, Jorge de wrote:
> > > 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.. (per domain)
> > * NLTEST /DCLIST:
> > * 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.. (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.
> > > > List info : http://www.activedir.org/List.aspx
> List FAQ : http://www.activedir.org/ListFAQ.aspx
> List archive:
> http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ | | | |
| dharding
Posts:24
 | | 11/30/2005 3:47 AM |
| This is exactly what I needed.
Thanks! -----Original Message-----
From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Tomasz Onyszko
Sent: Tuesday, November 29, 2005 6:21 PM
To: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: Re: [ActiveDir] GC list
Harding, Devon wrote:
> What's the easiest way to get a list of ALL my DC's and GC's in my
> forest along with IP address?
Quickest way will be to use nslookup:
nslookup -q=SRV _ldap._tcp.dc._msdcs. - for DCs
nslookup -q=SRV _ldap._tcp.gc._msdcs. - for GCs --
Tomasz Onyszko
http://www.w2k.pl
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
-----------------------------------------
__________________________________
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.
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ | | | |
| tonyszko
Posts:46
 | | 11/30/2005 3:57 AM |
| Harding, Devon wrote:
This is exactly what I needed. If You have a forest with multiple domain be sure that You are making a
right query about GCs because server which acts as a GC is registering
itself in the forest _msdcs zone. --
Tomasz Onyszko
http://www.w2k.pl
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ | | | |
| aricbernard
Posts:2
 | | 11/30/2005 8:17 AM |
| So here is a twist (for which I can take
no credit)¦If you have the Microsoft Shell (Monad) installed¦.
(Can be installed on a workstation - http://www.microsoft.com/downloads/details.aspx?FamilyID=ec1d82d9-0aff-451a-88b4-41db70e04f19&displaylang=en)
To get the GCs in the forest, issue the
following two commands in the Microsoft Shell:
$MyForest =
[System.DirectoryServices.ActiveDirectory.Forest]::getcurrentForest()
$MyForest.GlobalCatalogs
The result is something like:
Forest
: MyForest.us
CurrentTime
: 11/30/2005 8:05:58 PM
HighestCommittedUsn : 3444285
OSVersion
: Windows Server 2003
Roles
: {SchemaRole, NamingRole, PdcRole}
Domain :
sacnet.us
IPAddress
: 10.1.0.1
SiteName
: MySite1
SyncFromAllServersCallback :
InboundConnections :
{035ddf44-5838-4a24-bb44-8b3c35a90140}
OutboundConnections :
{6cb45330-5ab3-49f6-9ad5-321c80896c10}
Name :
MyGC1.MyForest.us
Partitions :
{DC=MyForest,DC=us, CN=Configuration,DC=MyForest,DC=us,
CN=Schema,CN=Configuration,DC=MyForest,DC=us, DC=DomainDnsZones,DC=MyForest,DC=us,
DC=ForestDnsZones,DC=MyForest,DC=us}
Forest :
MyForest.us
CurrentTime :
11/30/2005 8:05:58 PM
HighestCommittedUsn : 2794469
OSVersion
: Windows Server 2003
Roles
: {RidRole, InfrastructureRole}
Domain
: MyForest.us
IPAddress
: 10.2.0.2
SiteName
: MySite2
SyncFromAllServersCallback :
InboundConnections :
{6cb45330-5ab3-49f6-9ad5-321c80896c10}
OutboundConnections :
{035ddf44-5838-4a24-bb44-8b3c35a90140}
Name
: MyGC2.MyForest.us
Partitions
: {DC=MyForest,DC=us, CN=Configuration,DC= MyForest,DC=us,
CN=Schema,CN=Configuration,DC= MyForest,DC=us, DC=DomainDnsZones,DC= MyForest,DC=us,
DC=ForestDnsZones,DC= MyForest,DC=us}
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 recipientand may contain confidential or privileged information. If you are notthe intended recipient, any disclosure, copying, use or distribution ofthe information included in the message and any attachments isprohibited. If you have received this communication in error, pleasenotify us by reply e-mail and immediately and permanently delete thismessage and any attachments. Thank You. | | | |
| kamleshap
Posts:26
 | | 11/30/2005 8:41 AM |
| I am a fan of DS* commands...so
To find all DCs in forest
dsquery server -forest -o rdn
To find all GC in forest
dsquery server -forest -isgc -o rdn
--
Kamlesh
On 11/30/05, Tomasz Onyszko wrote:
Harding, Devon wrote:> What's the easiest way to get a list of ALL my DC's and GC's in my> forest along with IP address?Quickest way will be to use nslookup:nslookup -q=SRV _ldap._tcp.dc._msdcs. - for DCs
nslookup -q=SRV _ldap._tcp.gc._msdcs. - for GCs--Tomasz Onyszkohttp://www.w2k.plList info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspxList archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~"Fortune and Love befriend the bold"~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | |
| FreddyHARTONO
Posts:19
 | | 12/01/2005 11:05 AM |
| To find all DCs in forestdsquery server -forest -o
rdn
that wouldnt work
if you have biztalk msmq services (sadly i do)... so
its faster via
netdom if its all dc within the domain only
netdom query
dc
Thank you and have a splendid
day!
Kind Regards,
Freddy Hartono
Group Support
Engineer InternationalSOS Pte Ltd mail: freddy.hartono@xxxxxxxxxxxxxxxxxxxx
phone: (+65)
6330-9785
From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Kamlesh
ParmarSent: Wednesday, November 30, 2005 9:40 PMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: Re: [ActiveDir] GC
list
Since no one has mentioned, I will put extra one...I am a fan
of DS* commands...soTo find all DCs in forestdsquery server -forest -o rdnTo find all GC in forestdsquery server -forest -isgc -o
rdn--Kamlesh
On 11/30/05, Tomasz
Onyszko
wrote:
Harding,
Devon wrote:> What's the easiest way to get a list of ALL my DC's and
GC's in my> forest along with IP address?Quickest way will be
to use nslookup:nslookup -q=SRV _ldap._tcp.dc._msdcs. -
for DCs nslookup -q=SRV _ldap._tcp.gc._msdcs. - for
GCs--Tomasz Onyszkohttp://www.w2k.plList info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspxList
archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~"Fortune and Love befriend the
bold"~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | |
|
|