List all Global Catalog Server

29 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Marco

ungelesen,
21.07.2006, 03:13:0221.07.06
an
Hi Newsgoup, i have a question.
How can i list all Clobal Catalog server in a Domain.
Can you help me.
Thanks Marco

Jerold Schulman

ungelesen,
21.07.2006, 09:02:0421.07.06
an

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

Joe Richards [MVP]

ungelesen,
21.07.2006, 11:24:4221.07.06
an
nslookup gc._msdcs.<forest root DNS Domain Name>

So if you have a forest root of domain.com

nslookup gc._msdcs.domain.com


joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm

Marco

ungelesen,
21.07.2006, 12:00:0221.07.06
an
thanks marco

"Joe Richards [MVP]" schrieb:

Allen antworten
Dem Autor antworten
Weiterleiten
0 neue Nachrichten