Domain Controller Health Check Powershell Script
November 4 2018.
Domain controller health check powershell script. To incorporate dcdiag into a large powershell ad health check script you need to transform that output into a powershell object. Parsing and using dcdiag with powershell is an easy way to convert the dcdiag result to an object that you can then send to reports monitoring systems test frameworks and so on. The script will check the sysvol services ping etc.
Your decision what will use. Below you can find another great and useful powershell function for checking dc health dcdiag repadmin remotely. Active directory health check as technet gallery is retiring so moving the code to git hub.
Login to a windows computer with domain admin credentials or use. One of the oldest and most useful tools to figure out what s going on in your active directory environment is dcdiag. But powershell is more powerfull and you get more info instead of repadmin.
Extract the zip file. The script seems to overwrite the csv files as it goes through the various domains in a forest. Edit the adhealthcheck ps1 file in notepad and replace the three parameters listed in red with your own domain parameters in the required modifications section above.
Run the tests from a computer that is not a domain controller. There are several commands known for basic domain controller troubleshooting. Review the status of the replication including the percentage of replication attempts that have failed the replication partner as well as the status even for a specific domain controller in a report.
Please also check out one of the latest article for creating basic dc health email report. Use dcdiag with powershell to check domain controller health. Fsmocheck advertisingnote will not work on non english platforms.