To the OP:
 
Would you be happy with pulling the info on the client side? You could use
Win32_NetworkAdapterConfiguration and retrieve the DHCPLeaseObtained or
DHCPLeaseExpire values.
 
<back to my rabiit hole, folks :)>
 
Sincerely,

Dèjì Akómöláfé, MCSE+M MCSA+M MCT
Microsoft MVP - Directory Services
www.readymaids.com - we know IT
www.akomolafe.com
Do you now realize that Today is the Tomorrow you were worried about
Yesterday?  -anon

________________________________

From: [EMAIL PROTECTED] on behalf of Alain Lissoir
Sent: Wed 1/25/2006 6:45 PM
To: [email protected]
Subject: RE: [ActiveDir] OT: WMI to retrieve DHCP leases


There is no WMI exposure of the DHCP settings and data. Sorry.

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mitch Reid
Sent: Wednesday, January 25, 2006 1:08 PM
To: ActiveDir.Org
Subject: [ActiveDir] OT: WMI to retrieve DHCP leases


I'm trying to write a VB script to pull current DHCP leases from a 2003 DHCP
server.
I can do it with NETSH but I'd like to do it only with WMI in VBS.
 
The closest I could find was dhcpobj.dll from the 2000 Resource Kit.  However
it doesn't
appear to be able to pull leases.
 
Is this possible?
 
Thanks, Mitch.
 
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to