Quantcast
Channel: Network Infrastructure Servers forum
Viewing all articles
Browse latest Browse all 5877

Delete DHCP leases in batch?

$
0
0

Hi,

I want to be able to schedule regular deletion of all leases in a scope  To that end, I've been looking for a command line way to delete leases.  So far, no luck.

I was hopeful when I came across netsh, but eventually I came to believe that the only deletion available in netsh is deleting addresses from a scope, and that's not what I'm looking for.

Anyone know what could be used to schedule deleting leases?

(BTW - Cleanup doesn't seem to do what's needed.  What's happening is people can't get leases, even though dhcp management says the scope is not 100% used (sometimes well below 100%).  If I manually delete all the leases, by selecting them all in dhcp management and deleting, everything is OK again, even though scope utilization climbs fairly quickly back to the same percentage it was at before deleting...)

TIA...


Viewing all articles
Browse latest Browse all 5877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>