Welcome to TechNet Blogs Sign in | Join | Help

Microsoft Windows DHCP Team Blog

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

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

Posted: Monday, April 30, 2007 7:00 PM by teamdhcp

Comments

eric-e said:

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

# February 20, 2008 6:43 PM

teamdhcp said:

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

# February 21, 2008 12:42 AM

eric-e said:

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

# May 8, 2008 7:08 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker