As I’ve been asked plenty of times for this script and I got around to working on version 2 here is my original attempt at a Powershell Active Directory Domain monitoring html (htm) report. Version 2 is going to be faster, more comprehensive, more so for constant monitoring, and more like ADRAP.

This script will gather information about your domain controllers such as IP addresses, DNS registration, Suffix search list, Location in Sites and Services, Global catalog flags, LDAP port, Ping results, sysvol presence, LDAP connect-ability, WSMAN version and if it is configured, uptime, Disk usage, and full DCDiags of each system. It will output into an HTM file to be displayed from an IIS server or emailed out. This is for monitoring only and will no do any fixes or modifications.

For large environments with global WANs it will take a long time (~ 2+ hours for 100 DCs). This first version was not written for speed. I’m working on version 2 which is more comprehensive and faster.

You can run this on demand or have a scheduled task setup to run multiple times a day.

This is fully self-contained, minus needing RSAT (AD tools) installed.This can be run on an ‘Admin’ system or run on a domain controller.

You can simply put the file on a IIS server and have it display or email it out if you wish.

You will need to change the last output line to save it where you wish. It’ll currently save by date.

Change the dnssuffix item @ 238 to your domain name.

If you wish you can also change the logo information and company name @ 307 &308.

I’ll admit it’s not 100% pretty code but functional.

I hope you find some benefits / use to it in your environment. If you’d like the version that includes SCCM patch auditing let me know.

The script can be found here: WPMonsterDomainReport.ps1

Sample of the report: