Find windows domain controller

There are a lot ways. Here below is my way to do so:

Open command prompt etner: SET

C:\Windows\System32>set

ALLUSERSPROFILE=C:\ProgramData

APPDATA=C:\Users\syu\AppData\Roaming

CommonProgramFiles=C:\Program Files\Common Files

CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files

CommonProgramW6432=C:\Program Files\Common Files

COMPUTERNAME=ABC-LAPTOPN4K

ComSpec=C:\Windows\system32\cmd.exe

FP_NO_HOST_CHECK=NO

HOMEDRIVE=U:

HOMEPATH=\

HOMESHARE=\\abc-san\users\aaa

LOCALAPPDATA=C:\Users\aaa\AppData\Local

LOGONSERVER=\\ABC-AD

MpConfig_ProductAppDataPath=C:\ProgramData\Microsoft\Windows Defender

MpConfig_ProductCodeName=AntiSpyware

MpConfig_ProductPath=C:\Program Files\Windows Defender

MpConfig_ProductUserAppDataPath=C:\Users\syu\AppData\Local\Microsoft\Windows Def

ender

NUMBER_OF_PROCESSORS=4

OS=Windows_NT

Path=C:\Program Files\Broadcom\Broadcom 802.11;;C:\Windows\system32;C:\Windows;C

:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program F

iles (x86)\WatchGuard\wsm10.2\bin

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

PROCESSOR_ARCHITECTURE=AMD64

PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel

PROCESSOR_LEVEL=6

PROCESSOR_REVISION=2a07

ProgramData=C:\ProgramData

ProgramFiles=C:\Program Files

ProgramFiles(x86)=C:\Program Files (x86)

ProgramW6432=C:\Program Files

PROMPT=$P$G

PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

PUBLIC=C:\Users\Public

SESSIONNAME=Console

SystemDrive=C:

SystemRoot=C:\Windows

TEMP=C:\Users\syu\AppData\Local\Temp

TMP=C:\Users\syu\AppData\Local\Temp

USERDNSDOMAIN=ABC.LOCAL

USERDOMAIN=ABC

USERNAME=aaa

USERPROFILE=C:\Users\aaa

windir=C:\Windows

windows_tracing_flags=3

windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

My example shows the domain controller on my network is called “ABC-AD”. So I can login to the server and open “Active Directory Users and Computers” to check “Domain Controllers” if there are more than 1 domain servers.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s