repadmin /showreps servername
If it is a GC it will have the GC flag set. You don't need to be an admin to
do that part of the program...
DC Options: IS_GC
Alternatively you could use some ldap program that will tap the GC port or
query the rootdse.
Example of testing GC port
adfind -gc -h server -b -s base isGlobalCatalogReady
If you get anything but Error 0x51 (81) - Server Down it means the machine
is a GC or something else is listening on the port.
Example of testing rootdse
adfind -gc -h server -b -s base isGlobalCatalogReady
If the attribute isGlobalCatalogReady comes back as TRUE then the machine is
a GC.
repadmin is part of the support tools. adfind is a freeware tool on
www.joeware.net free win32 tools page.