Who’s the Primary (Find the Primary DC)

 

If you have a environment with a lot of Domain Controller’s are just want to know which one is the primary…

You can run the below command to find who’s the primary dc

nltest /dclist: danny.local

this command will list all DC’s in a environment and accent the Primary DC with [PDC] as you can see from the cmd line below.

image

nltest /dcname: danny

the below command will list only the primary domain controller for the domain you list after dcname:

image

email

Written by , Posted .
  • T-Bomb

    Server 2003 R2 can’t find command “nltest”

  • http://twitter.com/ccatlett1984 chris catlett

    Powershell is so much more graceful.

    Get-ADDomainController -Discover -Service PrimaryDC