Reports the site name for a specified domain controller (or computer).
strDcName = "atl-dc-01"Set objADSysInfo = CreateObject("ADSystemInfo")strDcSiteName = objADSysInfo.GetDCSiteName(strDcName)WScript.Echo "DC Site Name: " & strDcSiteName
This is a VB Script, this can be used by saving the file in .vbs file