List the Site Name for the Local Computer

Reports the site name for the local computer.

VBScript Code


Set objADSysInfo = CreateObject("ADSystemInfo")

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