Re: objItem.Speed is blank trying to check network connection speed

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: internet connection prefs
    ... the characteristic download speed is 5.86 kB/sec. ... It got so bad that 56k speeds would last only five minutes or so. ... System Preferences I switched to the V.34 script. ... Update 10.4.9 included new modem-emulation software. ...
    (comp.sys.mac.system)
  • Re: Function redefinition
    ... got sloppy when writing this. ... but when reached in running the script. ... still speeds up the process, ...
    (microsoft.public.scripting.vbscript)
  • Re: Try this then
    ... it speeds up too much after about 13 Seconds or so. ... After looking at the Script, ... every MilliSecond, but it didn't seem to work. ... LineBreaks, so Copy & Paste it into Notepad to remove any LineBreaks, ...
    (uk.people.silversurfers)
  • Re: logon script
    ... yes there is a server called k2 as well as k2net, I will try script Chris Jones see if that speeds it up ...
    (microsoft.public.windows.server.sbs)
  • Re: Running the script remotely using different credential
    ... I tried but still need help (Below script is not working). ... Set objLocator = CreateObject ... Set StdOut = WScript.StdOut ... Prev by Date: ...
    (microsoft.public.scripting.vbscript)