Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Active Directory » Determining a computer's AD site
Determining a computer's AD site [message #322901] Thu, 19 November 2009 19:52 Go to next message
JayDee  is currently offline JayDee  United States
Messages: 14
Registered: October 2009
Junior Member
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
Re: Determining a computer's AD site [message #323083 is a reply to message #322901] Fri, 20 November 2009 02:29 Go to previous message
meiweb  is currently offline meiweb  Germany
Messages: 2225
Registered: September 2009
Senior Member
Hello JayDee,

Use:
nltest /dsgetsite

or in a script:
Set oSysInfo = CreateObject("ADSystemInfo")
MsgBox oSysInfo.SiteName

From: http://windowsitpro.com/article/articleid/45471/q-how-can-a- client-computer-determine-which-site-it-belongs-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
>
Previous Topic:DNS Alias
Next Topic:Long time taking for Single user to logon
Goto Forum:
  


Current Time: Fri Jan 19 00:44:12 MST 2018

Total time taken to generate the page: 0.01871 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software