Microsoft Windows DHCP Team Blog

The world's most deployed DHCP Server! Deploy and discuss about your fav. server, here!

Talks with experts

Talks with experts

  • Comments 6
  • Likes

The Following is the link for forum where DHCP Team's Developers, Tester and PM are waiting for you answer/support your queries. 

http://forums.microsoft.com/TechNet/ShowForum.aspx?ForumID=1510&SiteID=17

Post all your queries regarding Microsoft DHCP Server.

Thanks
-RamaSubbu SK
DHCP Team

Comments
  • I have a question and have had trouble finding an answer, I am also not sure if this is the correct forum to post but here it goes anyway. Is there a way to query current issued lease information from 2003 DHCP Scopes using WMI, VB.NET or VB Script? I am trying to clean up some DNS records and need to know which DNS IP map back to current leases. I know you can use NetSH to get a lot of information but I didn't see a way to find current issued leases.

    Thanks,

    -Eric

  • Hey Eric,

    http://msdn2.microsoft.com/en-us/library/aa363284(VS.85).aspx

    This is the API you need to use from any of your RPC client.

    There is also a netsh command for displaying all v4 clients for a scope:

    netsh dhcp server scope show clients

    Raunak Pandya

    DHCP Server Team

  • Do you have a code example using this function while referencing Dhcpsapi.dll in VB.NET?

  • We are running DHCP on Window 2008 R2 and recently it lost router and duration settings for all scopes.  It continues to lose the durations settings.    Any suggestions on stopping and preventing the loss of settings DHCP?

  • Do DHCP clients that have a reserved IP address configured for them on the DHCP server release their IP address if for example thier DHCP server is unavailable and their lease has expired?

    Thanks,

    John

  • The default behavior of Windows clients is that they never release the IP address. You can configure the Windows client to "Release on shutdown" via an option configuration on the DHCP server. In which case, the client will release the IP address lease on a shutdown. Other clients (printers, phones) may have different behavior. However, most DHCP client implementations do not release the IP address lease.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment