You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been searching for a script like yours for a while, and am very happy to have found it.
It does its job quite well when running manually, however I was hoping to keep it running every time I start my computer, as a background task.
However if I so much as create a shortcut to run test.ps1 through powershell, or try and run it through task scheduler then I receive the following error:
(It is French due to the system language, I hope that is not too big an issue)
Running speed test # 1
.\speedtest.exe : Le terme «.\speedtest.exe» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de
script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin
d'accès est correct et réessayez.
Au caractère C:\Users\Heart\Downloads\AutomaticOokla\test.ps1:27 : 15
+ $response = .\speedtest.exe --format=json-pretty --unit=Mbps
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\speedtest.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ConvertFrom-Json : Impossible de lier l'argument au paramètre « InputObject », car il a la valeur Null.
Au caractère C:\Users\Heart\Downloads\AutomaticOokla\test.ps1:28 : 30
+ $responseObj = $response | ConvertFrom-Json
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData : (:) [ConvertFrom-Json], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ConvertFrom
JsonCommand
C:\Users\Heart\Downloads\AutomaticOokla\test.ps1 : Error
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,test.ps1
Total tests: 1 (failed 1)
---
It then loops endlessly with this error.
Again, running it manually works just fine, running it through a shortcut or task schedule produces this.
The path is the correct one, I did try setting permissions as administrator on both the shortcut and the scheduled task.
I'm quite unfamiliar with powershell, so I might just be doing something fundamentally wrong. x')
The text was updated successfully, but these errors were encountered:
Hi there!
I've been searching for a script like yours for a while, and am very happy to have found it.
It does its job quite well when running manually, however I was hoping to keep it running every time I start my computer, as a background task.
However if I so much as create a shortcut to run test.ps1 through powershell, or try and run it through task scheduler then I receive the following error:
(It is French due to the system language, I hope that is not too big an issue)
It then loops endlessly with this error.
Again, running it manually works just fine, running it through a shortcut or task schedule produces this.
The path is the correct one, I did try setting permissions as administrator on both the shortcut and the scheduled task.
I'm quite unfamiliar with powershell, so I might just be doing something fundamentally wrong. x')
The text was updated successfully, but these errors were encountered: