14.10. Managing the Leases for a Scope
You want to view or delete the active leases for a scope.
Using a graphical user interface
Open the DHCP snap-in.
In the left pane, right-click on DHCP and select Add Server.
Type in the name of the DHCP Server you want to target and click OK.
Expand the target scope.
Click on Address Leases. The list of allocated leases will be displayed in the right pane.
To delete a lease, right-click the target lease in the right pane and select Delete.
Confirm the deletion by selecting Yes.
If you are interested in scope utilization, you can view the statistics on a per-scope basis by right-clicking the scope and selecting Display Statistics.
Using a command-line interface
The following command displays the allocated leases for scope 10.1.2.0:
> netsh dhcp server scope 10.1.2.0 show clients
The following command deletes the lease for IP address 10.1.2.5:
> netsh dhcp server scope 10.1.2.0 delete lease 10.1.2.5
See Recipe 14.0 for more information on how to run the netsh command from within a script.
If you delete a lease, you'll also need to make sure the client
isn't actively using that IP address anymore. Simply deleting the
lease on the DHCP Server makes that lease available again for other
clients to use. It doesn't actually do anything to the client itself.
You can release a lease on the client by running
/release. Then run
ipconfig /renew to request a new
The netsh command supports a few other options ...