We help IT Professionals succeed at work.

purge all DHCP info

I'm looking for commands to be run on the client that will purge the lease from DHCP and delete DNS/WINS records.

I ran the following commands to simulate the old computer and DHCP lease was deleted, DNS record deleted; however WINS record remained
netsh interface ip delete wins "Local Area Connection" all
ipconfig /flushdns
ipconfig /release
shutdown -f

Comment
Watch Question

Have you tried specifying the specific port?  Or maybe "nbtstat -RR" from:

http://www.hidev.com/technical/nettools.htm#IPCONFIG%20or%20WINIPCFG
I meant specific adapter, not port.
And that should have been one R - "nbstat -R"

Author

Commented:
Thank you!