Domain Controller Health Check Commands
Using a to run against all domain controllers.
Domain controller health check commands. If you re unsure check out this article for testing rpc ports with powershell and use the test wsman powershell command to test wsman remote capabilities. Provided you are running command prompt or powershell on a domain controller or a system running rsat you can access the tool by running. If you have many domain controllers this will be a lot of information displayed this is where using the f option would come in handy. Below you will see some of the commands that i use when i need to ensure my domain controllers are still healthy after some sort of change like patching.
Repadmin showrepl servername results displayed. You should see the tests result in the following screen. The tests give you a high level overview of the overall health of your domain between your domain controllers. Use dcdiag with powershell to check domain controller health.
Adam bertram thu apr 18 2019thu apr 18 2019 active directory powershell 26. Function get dchealth cmdletbinding parameters used in this function param parameter position 0 mandatory true helpmessage provide server name valuefrompipeline true server parameter position 1 mandatory true helpmessage select dc health check dcdiag repadmin valuefrompipeline true validateset dcdiag repadmin string check checking if server exist try dc get addomaincontroller identity server catch write host error. None dsa object. In addition to checking the health of your domain controllers.
Dcdiag is a command line utility that comes with windows. I get asked over and over about what i do when i m performing a health check on a domain controller. Also you can use as the first step of troubleshooting when you face problems with your domain controller. I would love for you to come back here and let me know what else you do when you do health checks on domain controllers.
All we know that the best practise is to have 2 domain controllers and replicate between them. The event viewer. Running dcdiag tests with a powershell boost dcdiag or domain controller diagnostics is the microsoft approved way of validating active directory services. If you want to see the replication status for a specific domain controller use this command.
If you want to check the health of a remote domain controller run the dcdiag utility by specifying your remote domain controller name administrator username and password as shown below. If you have multiple domain controllers and want to test them all at once then use this command. C windows system32 repadmin showrepl dc2 default first site name dc2 dsa options. Now we have an image of the health status of domain controller in my enviroment quick and simple.
Replace servername with the name of your domain controller.