Hello JayDee,
Use:
nltest /dsgetsite
or in a script:
Set oSysInfo = CreateObject("ADSystemInfo")
MsgBox oSysInfo.SiteName
From:
http://windowsitpro.com/article/arti...elongs-to.html
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!!
http://www.blakjak.demon.co.uk/mul_crss.htm
> What is the most accurate way to determine what site a computer is in
> by examining that computer? I've read that the "HKLM\SYSTEM
> \CurrentControlSet\Services\Netlogon\Parameters \DynamicSiteName" and
> SiteName if it exists are not 100% accurate and have noticed times
> when it didn't seem to be.
>
> thanks
>
> - JayDee
>