Delete DHCP leases in batch?
hi,
i want able schedule regular deletion of leases in scope end, i've been looking command line way delete leases. far, no luck.
i hopeful when came across netsh, came believe deletion available in netsh deleting addresses scope, , that's not i'm looking for.
anyone know used schedule deleting leases?
(btw - cleanup doesn't seem what's needed. what's happening people can't leases, though dhcp management says scope not 100% used (sometimes below 100%). if manually delete leases, selecting them in dhcp management , deleting, ok again, though scope utilization climbs same percentage @ before deleting...)
tia...
for reason can set lease time in dhcp config.
manually rebuilding process mean have to:
- leases
- filter these leases find ones older <your lease time>
- delete filtered leases.
double check dhcp config, works supposed do.
for reference: netsh dhcp commands:
http://technet.microsoft.com/en-us/library/cc787375(ws.10).aspx
hth
gregor stefka
Windows Server > Network Infrastructure Servers
Comments
Post a Comment