Hello there. Hope someone can help me out here!

I've got a script which uses the WMI service to get information about the
domain, using this query....

Select * from Win32_NTDomain where DomainName='MYDOMAIN'

From this information, I use the DcSiteName to automatically configure the
local machine (long story). Anyway, this works fine - I can grab the domain
controller site name under windows XP, but this won't work for Windows 2000.
This is true, according to the scripting pages on Microsoft.com.

So basically, im asking if there is a way I can find out the DC Site Name
under windows 2000, using VBScript?

Thanks in advance,
Simon

Re:Getting domain information in Windows 2000 by Mo

Mo
Mon Feb 20 11:55:07 CST 2006

This works for me
Set objADinfo = CreateObject("ADSystemInfo")
ADSite = objADinfo.SiteName

Re:Getting domain information in Windows 2000 by SimonG

SimonG
Wed Feb 22 01:54:27 CST 2006

Thanks - it worked for me also! :-)



"Mo Childs" wrote:

> This works for me
> Set objADinfo = CreateObject("ADSystemInfo")
> ADSite = objADinfo.SiteName
>