Hello.
Im not good at all at powershell.
But im trying to get out "RegistrationState" from a csv file made from "get-brokermachine"
So far its just a simple
$csv = import-csv c:\status.csv
write-host Statistic $csv.registrationstate
From this i get"
Get output failed:
Output: ==============================================
Statistic Registered
So i get the response that i want from the csv.
But Orion says "Test failed with unknown status"
and if i save and submit this monitor i get the error:
PowerShell script error. Scripting Error: Script does not contain the expected parameters or is improperly formatted. 'Statistic' missing.
Anyone know how i can get the statistic ouput not to fail ?