Home > Default > VBA Internet speed

VBA Internet speed

November 30Hits:0
Advertisement
Hi I'm new to this type of scripting however know a bid of VBA and MSaccess. However this is my first project using WMI.
Did a function with pingstatus that went well.
I'm now trying to measure my internet speed on this PC and get the value in MSaccess. I searched around and can now find at least my network adapter.
Function nw()strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionStatus = 2", , 48)
For Each objItem In colItems
Debug.Print "-----------------------------------"
Debug.Print "Win32_NetworkAdapter instance"
Debug.Print "-----------------------------------"
Debug.Print "Name: " & objItem.Name
Next
End Function
Now what I like to do is get the mom. speed on that adapter 
The same as what you can see on the "windows task manager/networking/networkutilization"
I tried every property in the win32_network adapter but can't find the right one.
All help appreciated. 

Answers

It is not on the adapter.  The utilization is a performance number.  Run Perfmon and look at the network data.
Counters are an advanced element of scripting.  Search for examples.
https://www.google.com/#newwindow=1&q=wmi+performance
¯\_(ツ)_/¯

Read other 4 answers

Tags:

Related Articles

  • VBA Internet speedNovember 30

    Hi I'm new to this type of scripting however know a bid of VBA and MSaccess. However this is my first project using WMI. Did a function with pingstatus that went well. I'm now trying to measure my internet speed on this PC and get the value in MSacce

  • Internet speeds keep slowing down to a crawlOctober 11

    I'm having a problem that has only developed in the past week which was during a time when I haven't changed any configurations in that period of time since my son was born a week ago yesterday and I obviously had more important things to do than mes

  • How to get bandwidth / internet speed in my application ?October 11

    Hi, I am using iPad 3 and ios 5.1 I want to know the bandwidth used by my application (or the internet speed) and display it , as my application deals with downloading of images. Please guide me ...... ThanksThanks for the reply ... Is there any api

  • Time Capsule only runs with 1,1Mbit up/down during data transfer, internet speed is ok, TC is used to extend an existing networkOctober 11

    Hello Everyone, I have a new 2TB Time Capsule running with a MacBook Air. I want to use the TC to access data (Aperture library, iTunes library, other Files) and to backup my MacBook Air via Time Machine. I set it up, integrated the TC in my Network

  • Absurdly slow internet speeds and often unable to ...October 11

    I'm used to getting around 13 Mbps Internet speeds from BT. In the last few days, although the speed tests show similar results (assuming I can actually get online to test them), Internet browsing has become painfully slow, with many pages simply not

  • My internet speed suddenly went VERY slow on all browserOctober 11

    I am running on a Mac OS X Lion 10.7.5, 2 Ghz Intel i7, 4GB Ram DDR3. I am experiencing very slow internet speed after some system update some time ago. I have tried using wireless and LAN cable but both results the same. I've tried resetting routers

  • HT1222 My internet speed has slowed to a crawl after installing security update 2015-003.  Any ideas on how to fix?October 11

    I have a mini mac with 8GB ram and running yosemite OS. I recently installed security update 2015-003 and now my internet connectivity have slowed to a crawl. sometimes if I turn wi-fi off and then back on the speed returns to normal but sometimes it

  • Verizon is Capping Internet Speed/Service for "Unlimited" CustomersOctober 11

    Some recent news has been brought to my attention by Verizon Wireless' customer service department, and I think that given the severity of Verizon Wireless’ continued breach of contract to Internet customers, this matter should be brought to everyone

  • Poor internet speed with time capsule or Airport extremeOctober 11

    I'm trying to find away to increase the throughput of my 1st generation tme capsule. i'm getting a 33% drop in speed over wireless compared to wired conncetions. current setup Virginmedia XXL broadband  100Mbit down  5Mbit up. Modem standard virginme

  • Internet speed compromised after upgrade to iOS 8October 11

    Have recently upgraded to iOS 8 and Internet speed has been drastically reduced on my iPad air (128Gb). Is there anyone out there who can assist? I'm on a weak 3G network.First try a soft reset.  Hold the home & sleep/wake button down simultaneously.

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.581 s.