Re: List all Global Catalog Server
- From: Jerold Schulman <Jerry@xxxxxxxxxx>
- Date: Fri, 21 Jul 2006 09:02:04 -0400
On Fri, 21 Jul 2006 00:13:02 -0700, Marco <Marco@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Newsgoup, i have a question.
How can i list all Clobal Catalog server in a Domain.
Can you help me.
Thanks Marco
If you have NOT already installed the Windows Server Support Tools, install them from the \SUPPORT\TOOLS\SUPTOOLS.MSI file of the Windows Server CD-ROM.
Remove the serialization from the following and save it as IS_GC.BAT. Run IS_GC.BAT
01 @echo off
02 setlocal
03 set get=netdom QUERY /DOMAIN:%USERDNSDOMAIN% DC
04 set no=The command completed successfully.
05 for /f "Skip=1 Tokens=*" %%a in ('%get%^|find /V "%no%"') do (
06 call :isgc %%a
07 )
08 endlocal
09 goto :EOF
10 :isgc
11 set GC=N
12 for /f "Tokens=*" %%g in ('repadmin /showreps %1 ^|findstr /l /i /C:"DC Options: IS_GC"') do (
13 set GC=Y
14 )
15 if "%GC%" EQU "Y" @echo %1
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
.
- Prev by Date: Re: AD 2k3 Password Policy inconsistancies
- Next by Date: Re: Unable to create domain trust: a device not functioning
- Previous by thread: Odd Win2k3 Request
- Next by thread: Re: List all Global Catalog Server
- Index(es):
Relevant Pages
|