Command to find out AD site

Posted on 2011-05-11
Last Modified: 2012-05-11

Does anyone know a command I can run on a Windows 2008 server to find out what AD site it's located in, and also the closest GC/DC's?
Question by:Joe_Budden
    LVL 21

    Expert Comment

    by:Joseph Moody
    nltest /server: /dsgetsite
    LVL 1

    Author Comment

    Thanks but that doesn't show the DC/GC's in it?
    LVL 4

    Accepted Solution

    This Might Help with listing domain controllers

    and nslookup gc._msdcs.<YOURDOMAIN> will list global catalog servers in the given domain.

    were you looking for a more elegant solution, or will this work fo ryou?

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    We recently had an issue where out of nowhere, end users started indicating that their logins to our terminal server were just showing a "blank screen." After checking the usual suspects -- profiles, shell=explorer.exe in the registry, userinit.exe,…
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
    This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now