List Servers in an Active Directory Site

Lists servers in a specified Active Directory site.

4 Star
Add to favorites
Active Directory
E-mail Twitter Digg Facebook
  • This script lists only my DCs
    2 Posts | Last post October 22, 2013
    • Hi, 
      When I ran this script, it is displaying only the Domain Controllers in each site. I need the complete list of servers for each site. 
      Thanks & regards,
    • Just in case someone else comes looking at this article - there is no convenient way to script this in either VB and PowerShell, because they are both looking at the Sites info in the AD Configuration container, which is only for Domain Controllers.
      The BEST way to find member server's site is to call the following from your script:
       "nltest /server:[server_name] /dsgetsite" 
      NLTEST is a command-line utility available on any Windows 2003 or above server.
  • Only DCs
    1 Posts | Last post December 23, 2010
    • I also am only seeing DCs with this script