Last Release Date
2022-12-14
This is a PowerShell script for monitoring DHCP scopes on a Windows Server. The script defines several parameters, including thresholds for warning and critical alerts, as well as minimum and maximum values for the total number of IPs in a scope. The script retrieves a list of active DHCP scopes and checks their usage. If a scope's usage is above the defined warning or critical thresholds, or if the number of available IPs falls below a certain level, the script will generate a message indicating the issue and increment a count for the appropriate status (warning, critical, or OK). The script will also display a summary of the status counts at the end.