Querying DHCP information from Windows DHCP Database
Hi all,
Is it possible using WMI, to query the DHCP info wherein I can get my DHCP Server's Address Leases,Reservations,Hostnames,Mac Address ?. The DHCP GUI is able to display it, so, is there any way I can get this information in C# using System.Management namespace ?.
Thanks.
Hi Durgaprasad,
Thanks for the link. I have already seen those examples and they dont query the DHCP Database. If you do a search in your dhcp enabled server machine for dhcp.mdb, you would see it.However, that file wouldnt be able to open with Access, checked that too. Now, this file should contain the necessary details what I want, like, what are the current leases,what are the reserved ips etc.,Windows is able to retrieve the information when the DHCP GUI from Administrative Tools is opened.So, I think there should be a way for programmers too.