admin_hub

sysop@hub:~/tools/dcdiag-reader$

dcdiag-reader

dcdiag and repadmin tell you everything about the health of Active Directory, in a wall of dots and error numbers. Paste the output here. You get which domain controller fails what, what each failed test and each replication error really means, which failures are only a consequence of another one, and what to do first. The text is read by your browser and never uploaded.

getting the output

Run these on a domain controller in an elevated prompt, as a domain admin. They only read. The file ends up in the folder you are in.

dcdiag /e /c /v > adhealth.txt
repadmin /replsummary >> adhealth.txt
repadmin /showrepl * /errorsonly >> adhealth.txt

what it reads

FromWhat
dcdiagEvery "passed test" and "failed test" line per server, with the lines dcdiag printed before a failure. 24 tests are explained, among them Connectivity, Advertising, Replications, SysVolCheck, DFSREvent, Services, KnowsOfRoleHolders, RidManager, NetLogons, DNS and SystemLog.
repadmin /showreplEvery failed replication link with partner, partition, error number and the count of failures in a row.
repadmin /replsummaryThe largest time since a successful replication per server, and the error if one is shown.
Error numbers1722, 1753, 1256, 5, 8453, 8524, 8606, 8614, 8456, 8457, 1908, 1396, 1727, 1311, 58 and "the target principal name is incorrect".

The page reads text. It cannot see the event logs the tests point at, and a test that passes says only that this test passed at that moment. Commands in the steps that change something (resetting a machine account password, seizing a role, removing lingering objects, demoting a controller) are named so that you know what to read up on, not as a script to run: take a backup of a healthy domain controller first, and for anything you have not done before, read Microsoft's article for that error number. Related: Active Directory cheat sheet, DNS and DHCP cheat sheet, Group Policy cheat sheet, Entra Connect cheat sheet.