Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Command to find out AD site

Posted on 2011-05-11
Medium Priority
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 22

Expert Comment

by:Joseph Moody
ID: 35739634
nltest /server: /dsgetsite

Author Comment

ID: 35739718
Thanks but that doesn't show the DC/GC's in it?

Accepted Solution

ZephyrTC earned 2000 total points
ID: 36156619
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

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Sometimes it necessary to set special permissions on user objects.  For instance when using a Blackberry server, the SendAs permission needs to be set. I see many admins struggle with the setting that permission only to see it disappear within a few…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

578 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