I have created a monitoring dashboard and I am attempting to use a PowerShell Grid Widget to import CSV data. It is not working. Here is my code: Import-csv \\ <network path>\datafile.csv
The dashboard widget compiles fine, but no data is displayed. The file has 2 columns named "Name" and "DiskSizeRequired". The name field is a string data type and the disksizerequired is an int data type. The first row has the following data "#TYPE System.Data.DataRow" in the first column. There are 11 rows of data. When I load this script directly into PowerShell it works fine, but when loading it into SCOM I get nothing returned.
Is it possible to load data from a CSV or TXT file into a dashboard? If so, what might I have incorrectly configured causing the data to not load properly?
Thanks,
Alex