Announcement

Collapse
No announcement yet.

What are the various ways to know AD site name of a computer

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • What are the various ways to know AD site name of a computer

    Subject says it all. I know it can be fetched from the registry key (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servi ces\Netlogon\Parameters\DynamicSiteName) but want to know still there are any more authentic ways.

    Is the above key will get created during the first boot of computer after it is joining to the network?

  • #2
    Re: What are the various ways to know AD site name of a computer

    From here:
    http://windowsitpro.com/article/arti...elongs-to.html
    You can also determine a client's site either by running the command


    nltest /dsgetsite

    or by using the following code in a script:
    Set oSysInfo = CreateObject("ADSystemInfo")
    MsgBox oSysInfo.SiteName

    To reset the client and discover information about the client's site, run the following command:


    nltest /sc_reset:domain-name\local-dc

    It's important that client machines don't have IP addresses outside of defined sites. Certain services, such as the Microsoft Exchange System Attendant, won't start if the site's membership can't be discovered.
    nltest is a resource kit utility so not standard on XP (you need to install the support tools), but the script works perfectly
    Last edited by Ossian; 22nd May 2009, 08:49.
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: What are the various ways to know AD site name of a computer

      Thanq very much. That answers my question

      Comment


      • #4
        Re: What are the various ways to know AD site name of a computer

        Glad to help!
        Tom Jones
        MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
        PhD, MSc, FIAP, MIITT
        IT Trainer / Consultant
        Ossian Ltd
        Scotland

        ** Remember to give credit where credit is due and leave reputation points where appropriate **

        Comment

        Working...
        X