Applies to Windows Server 2008 and above
Please note that in future versions of Windows, Microsoft might remove the Netsh Functionality for DHCP Server. The recommended usage is with Windows Powershell. We will explore that in a later post.
In this example I have considered DHCP Server as \\mydhcpservername and scope as 192.168.0.0
Run Command Prompt
c:\>netsh netsh>dhcp netsh dhcp>server netsh dhcp server>\\mydhcpservername netsh dhcp server>show scope 192.168.0.0
Changed the Current Scope Context to 192.168.0.0 Scope
netsh dhcp server scope>show client 1
The above command will list the following in the below order
- IP Address
- Subnet Mask
- MAC Address
- Lease Expiry
- Type of Lease
- Name of Connected Device