Re: objItem.Speed is blank trying to check network connection speed
- From: "Ato Bisda" <atobisda@xxxxxxxxx>
- Date: Thu, 5 May 2005 19:50:41 -0400
I've been pretty successful getting NIC connect speeds from the MSNdis_LinkSpeed class in the root\wmi namespace.
Sample code follows:
------------------------------------------------------------------------------
computerName = "."
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
Set wbemServices = objLocator.ConnectServer(computerName, "root\wmi")
Set coll = wbemServices.ExecQuery("SELECT InstanceName, NDisLinkSpeed FROM MSNdis_LinkSpeed",,48)
------------------------------------------------------------------------------
Regards,
Ato
"Joel" <nunya@xxxxxxx> wrote in message news:oxwee.643$Db6.626@xxxxxxxxxxxxx
> I've been trying to find out what computers are connecting at what speed. I
> thought "hey, a script! That should be easy enough."
> I've tried the MS scriptomatic script to "Select * from
> Win32_NetworkAdapter" and it scrolls through all the adapters on the machine
> (I've tried it only locally on a couple machines so far) but the results
> for:
> Wscript.Echo "Maximum Speed: " & objItem.MaxSpeed
> Wscript.Echo "Speed: " & objItem.Speed
>
> and a number of others just show up blank. I've tried it on XP sp1 and 2003
> sp1, and 2000 sp4 all HP's. One a notebook with a Broadcom chip and a
> Proliant server with an HP labeled card, which I'm pretty sure is also a
> Broadcom, and a third server I didn't check the card.
>
> Are there any issues specific to Broadcoms, or is there a way to pull it out
> from somewhere else? How do I figure out why it shows blank?
>
> TIA
>
> -Joel
>
>
>
.
- References:
- Prev by Date: How do I validate the f.DateCreated against a given value
- Next by Date: Re: VB Script in HTML Page
- Previous by thread: objItem.Speed is blank trying to check network connection speed
- Next by thread: only 300 dcs returned in script
- Index(es):
Relevant Pages
|