DhcpServer module: setup and commands
Documentation: Microsoft Learn
Inspect DHCP scopes, leases, reservations and options with Get-DhcpServerv4Scope before changing address pools or client configuration.
Getting it
Present on a DHCP server. On an admin workstation, install the RSAT DHCP server tools, or use Install-WindowsFeature RSAT-DHCP on Windows Server.
Examples
Show reference output
Show reference output
Show reference output
Show reference output
What it is for
Use it to report scope utilization before an address range runs dry, and to reconcile reservations against a source of truth. It also covers failover relationship checks where two servers share responsibility for a scope.
Typical tasks
- Report scope utilization and free addresses
- List active leases within a scope
- Reconcile reservations against an inventory
- Check server and scope level options
- Verify failover relationship state
- Export scope configuration before a migration
Check the installed version
Compare the module path and version with the session used by your scheduled task or automation account. Use it to report scope utilization before an address range runs dry, and to reconcile reservations against a source of truth. It also covers failover relationship checks where two servers share responsibility for a scope.