Reports the site name for the local computer.

Visual Basic
Edit|Remove
Set objADSysInfo = CreateObject("ADSystemInfo")

WScript.Echo "Current site name: " & objADSysInfo.SiteName