This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Fetching from CSV

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 ?