You should regularly check a domain controller (DC), to ensure that it is properly working and syncing all its configuration with other DC’s, one way of completing this task is by using the dcdiag.exe command-line tool.
There are 27 basic tests, including checking registration of DNS records, name resolution, AD replication, and Flexible Single Master Operations (FSMO) roles. If your DC fails any of the tests, it likely indicates a problem. To run the tool locally on a Windows Server DC, open an elevated PowerShell prompt, type dcdiag, and press ENTER.
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.PS H:\> dcdiag.exe
Directory Server Diagnosis
Performing initial setup:
Trying to find home server…
Home Server = DC1
* Identified AD Forest.
Done gathering initial info.Doing initial required tests
Testing server: PlexUK\DC1
Starting test: Connectivity
……………………. DC1 passed test ConnectivityDoing primary tests
Testing server: PlexUK\DC1
Starting test: Advertising
……………………. DC1 passed test Advertising
Starting test: FrsEvent
……………………. DC1 passed test FrsEvent
Starting test: DFSREvent
……………………. DC1 passed test DFSREvent
Starting test: SysVolCheck
……………………. DC1 passed test SysVolCheck
Starting test: KccEvent
……………………. DC1 passed test KccEvent
Starting test: KnowsOfRoleHolders
……………………. DC1 passed test KnowsOfRoleHolders
Starting test: MachineAccount
……………………. DC1 passed test MachineAccount
Starting test: NCSecDesc
……………………. DC1 passed test NCSecDesc
Starting test: NetLogons
……………………. DC1 passed test NetLogons
Starting test: ObjectsReplicated
……………………. DC1 passed test ObjectsReplicated
Starting test: Replications
……………………. DC1 passed test Replications
Starting test: RidManager
……………………. DC1 passed test RidManager
Starting test: Services
……………………. DC1 passed test Services
Starting test: SystemLog
……………………. DC1 passed test SystemLog
Starting test: VerifyReferences
……………………. DC1 passed test VerifyReferencesRunning partition tests on : DomainDnsZones
Starting test: CheckSDRefDom
……………………. DomainDnsZones passed test CheckSDRefDom
Starting test: CrossRefValidation
……………………. DomainDnsZones passed test CrossRefValidationRunning partition tests on : ForestDnsZones
Starting test: CheckSDRefDom
……………………. ForestDnsZones passed test CheckSDRefDom
Starting test: CrossRefValidation
……………………. ForestDnsZones passed test CrossRefValidationRunning partition tests on : Schema
Starting test: CheckSDRefDom
……………………. Schema passed test CheckSDRefDom
Starting test: CrossRefValidation
……………………. Schema passed test CrossRefValidationRunning partition tests on : Configuration
Starting test: CheckSDRefDom
……………………. Configuration passed test CheckSDRefDom
Starting test: CrossRefValidation
……………………. Configuration passed test CrossRefValidationRunning partition tests on : PlexUK
Starting test: CheckSDRefDom
……………………. PlexUK passed test CheckSDRefDom
Starting test: CrossRefValidation
……………………. PlexUK passed test CrossRefValidationRunning enterprise tests on : PlexUK.co.uk
Starting test: LocatorCheck
……………………. PlexUK.co.uk passed test LocatorCheck
Starting test: Intersite
……………………. PlexUK.co.uk passed test Intersite
PS H:\>