Skip to main content

Bandwidth Test via SpeedTest CLI


Forum|alt.badge.img

With work from home and troubleshooting of remote networks the team I am on constantly are getting reports of things “being slow”.  Many times the issue comes down to poor WI-FI connection or an internet issues on the end user side.  Who of us has not heard “But Netflix works just fine”….😣

I am using the basic Health Worklet but wanted to create a new worklet that provides more information.  

In came SpeedTest.net CLI using the following evaluation code and remediation code I am able to get live speed test for end users.  Download the zip file - Extract and upload the .exe into the worklet.

 

Note: This is windows centric

Evaluation Code:

exit 1

Remediation Code:

&'.\speedtest.exe' --progress=no --accept-license | Where-Object {$_.trim() -ne "" }

 

--progress= no live update screen just final results

--accept-license = seems to be an undocumented flag to accept the license on initial run of exe

The $.trim() -ne””  is just to remove blank lines in the output.

 

Please provide some feedback.

3 replies

jack.smith
Forum|alt.badge.img+1
  • All Star
  • 168 replies
  • May 10, 2022

That’s really cool. More information over a period of time I think would provide a data set that might provide the context the end user needs to understanding their interpretation of slow. 

 

Here is a worklet where I took the output from netsh wlan show interfaces every 30 minutes for 48 hours and dropped it into a CSV file 

 


Forum|alt.badge.img

I like this idea. I added a few more lines of diagnostics to help spot issues. 

 

$results = .\speedtest.exe --progress=no --accept-license | Where-Object {$_.trim() -ne ""}
$results += ping -l 1000 -f -n 100 google.com | Select-String -NotMatch -Pattern 'Reply'
$results += ipconfig /all
Write-output $results

 


  • 7 replies
  • October 10, 2022

Like this allot although I do not appear to be getting any output from the upload or download reporting back


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings