Wednesday, September 28, 2011

As a administrator in enterprise environment, there are few basics which I unfortunately tend to forget because I do work most of the time in GUI. When I come to new environment where I need to know the infrastructure - as a client computer in domain, you should run netdom command in order to find out

a. list of domain controllers in domain
b. list of fsmo roles distributed between domain controllers
c. you can even join computers in the domain, manage computer accounts etc.

For example a. - you you should run command:

C:\Users\damirivankovic>netdom query dc
List of domain controllers with accounts in the domain:

HYPERV01
HYPERV02
The command completed successfully.

For example b. - you should run command:
C:\Users\damirivankovic>netdom query fsmo

Schema master HYPERV01.domain.local
Domain naming master HYPERV01.domain.local
PDC HYPERV01.domain.local
RID pool manager HYPERV01.domain.local
Infrastructure master HYPERV01.domain.local
The command completed successfully.

For c. and others - please consult the result of command netdom /?