Vous pouvez l'obtenir sur mon Git en utilisant le lien ci-dessous :
Vous pouvez soit saisir les informations telles que le serveur smtp à l'invite, soit suivre la syntaxe décrite ci-dessous dans ce billet.
If you just press enter without adding any information, it will just generate the report in the same folder.


Use this syntax and save it in batch file so you do not have to enter information in the prompt again and again.
Note: Run as Powershell windows Administrator else you will see fails in some environments.
Single recipient Syntax:
.\ADHealthCheckV2.ps1 -Smtphost smtpserver -from [email protected] -EmailReport [email protected]
Multiple recipient Syntax:
.\ADHealthCheckV2.ps1 -Smtphost smtpserver -from [email protected] -EmailReport “[email protected],[email protected]”
Batch file syntax:
Powershell .\ADHealthCheckV2.ps1 -Smtphost smtpserver -from [email protected] -EmailReport [email protected]

Timeout value is by default set at 60, you can increase it if you want. (This is how long it will wait for DC to report for the test)
.\ADHealthCheckV2.ps1 -Smtphost smtpserver -from [email protected] -EmailReport [email protected] -timeout 120

You will receive the report on email as below:

Enjoy the new updated version and deploy to your environment.
Thanks for reading and downloading….
