Title: RE: [ActiveDir] OT: WMI to retrieve DHCP leases

I’d just graph DHCP lease count over the course of a couple weeks and put a best fit line on that graph. I wouldn’t even bother with DNS or anything. If you have printers with static DHCP or servers that way, hopefully somebody knows roughly how many of those there are and you can just subtract.

 

Thanks,
Brian Desmond

[EMAIL PROTECTED]

 

c - 312.731.3132

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, January 27, 2006 1:58 AM
To: [email protected]
Subject: RE: [ActiveDir] OT: WMI to retrieve DHCP leases

 

You have a point. Except that if your DNS scavenging and lease duration are not in synch, then you get a highly skewed report. I understand your point about non-domain-members.

 

Deji

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Desmond
Sent: Thursday, January 26, 2006 6:14 PM
To: [email protected]
Subject: RE: [ActiveDir] OT: WMI to retrieve DHCP leases

 

DHCP is a much better metric than computers joined to the domain for this. You can't count non-domain-joined devices with any AD tool. Chances are however these devices have a DHCP lease.

 

Thanks,

Brian Desmond

 

c - 312.731.3132

 


From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Thu 1/26/2006 8:05 PM
To: [email protected]
Subject: RE: [ActiveDir] OT: WMI to retrieve DHCP leases

DHCP is NOT the authoritative source for "how many computers are out there"

If you could, grab Joe's oldcomp tool and just run it against your domain.
You should get something close to accurate from there.


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 Mitch Reid
Sent: Thu 1/26/2006 12:55 PM
To: [email protected]
Subject: Re: [ActiveDir] OT: WMI to retrieve DHCP leases


No, I need to get a count of how many computers are out there.  I'm lacking a
good authoritative source and want to use the DHCP servers as a count.

My script works that runs NETSH (for each scope on each server) but I like to
keep everything in VB/WMI when possible.

Thanks for the replies.


On 1/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

        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 _vbscript_ 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/
       


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