Reports the site name for the local computer.
Set objADSysInfo = CreateObject("ADSystemInfo")WScript.Echo "Current site name: " & objADSysInfo.SiteName
This is a VB Script, this can be used by saving the file in .vbs file
One Stop Update for Techies involved with Infrastructure Designing, Consulting, Management and Support
Reports the site name for the local computer.
Set objADSysInfo = CreateObject("ADSystemInfo")WScript.Echo "Current site name: " & objADSysInfo.SiteName