In Windows Server acting as a DHCP server, how can I get a list of the DHCP reservations from the CMD? I need to know
- the MAC address and
- the IP address reserved to that MAC address inside the DHCP server.
Right now I have to right click every single item and go to Properties.
Since Windows Server 2003 there has been
netsh dhcp server
. You need a command prompt with administrative privileges to use it. E.g. for the list of the DHCP reservations:Or from another machine:
If you don't know the scope address, you can list all scopes on the server with:
Or you could even export the whole server configuration into a file (only on the local server):
The
netsh
has its documentation baked in: you can get a list of commands currently available by giving an incomplete command. You could start with:PowerShell module DhcpServer has
Get-DhcpServerv4Reservation
:arp -a
Shows list of current reservations on your network. Addresses with type=dynamic are reserved addresses