Sometimes it is easier to display the dhcp scope through netsh

For this do as follows:

psexec \\dhcpservername netsh dhcp server scope show clients

To show the available dhcp addresses you would want to get statistics:
psexec \\dhcpserverName netsh dhcp server show mibinfo

In this case it will run remotely on dhcpserver dhcpservername all the leases for network 10.91.10.x

Pretty cool huh, also when you need to search through the list:

set mac=00-00-00-00-00 
psexec \\dhcpservername netsh dhcp server scope show clients | find "%MAC%"

To see more details about your wins server type:

netsh wins server \\winsservername show info

To search for records in the database you can search for static and dynamic records in the database.

For static records type:

C:\>netsh wins server \\winsservername show database servers={} rectype=1 > b:\winsdyn.txt

For dynamic records change the rectype into 0

To view the global settings on a interface and look e.g. if Chimney Offload is enabled or disabled type:

netsh int tcp show global

If you want to use powershell to do some dhcp work there is a very good module made by Jeremy Engel. If you want to administer dhcp on windows xp you need to first install the administrative tools to work with DHCP and then import the dhcp.dll into the shell by typing:


When you want to see some network traffic in wireshark you need to use the portable application but installing this software on a server is maybe not what you want. Then what comes in handy is the following command:
netsh trace start capture=yes

Don't let it run too long so you need to stop it after the problem or slowness had started/finished
netsh trace stop

On Me
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License