DHCP Remediation Script

CONTEXT: We have our DCHP scope set for MAC filtering for compliance mitigation reasons.

PROBLEM: Every time we remove a machine from AD, the MAC filter in that lease becomes empty.

I’d like to run a script that takes any IP in the scope that has no MAC assigned to it and set it to all 0s. I’ve looked at some of the DHCP modules and commands to run but it’s been quite some time since I had to script like this and I’m a bit rusty. Any help would be VERY much appreciated.

Disclaimer -> I’m not that familiar with using DHCP Filtering.

Are you looking to update the MAC filter list on the server, or update the reservation list on a scope?

MJ

Reservation list on the scope.