email

Friday, June 19, 2009

Command to list all Domain Controllers in a Domain

I know, there are various methods and scripts available in web to get the list of domain controllers information in a domain. Still I want to write this post to present simplest way of doing it from a windows XP/Windows 2003 machine using my favorite command nltest.

Syntax: nltest.exe /DCLIST:<domain name>

Example : nltest.exe /DCLIST:pamarths.com

Here pamarths.com is my domain name and executing this will give DC name, and the site to which it belongs to. Please note that you need to install windows support tools package to get nltest command. You can do numerous other things with this command. I will write another post when I find some time.

Happy Learning…,
Sitaram Pamarthi

No comments:

Post a Comment