Kelemvor
Expert
26 days agoHow to create a DataSource to return 2 values via PowerShell?
Hi,
I'm trying to write a DS to return how many Hyper-V Snapshots I have that are more than 3 days old. The script works but I'm having trouble returning the data.
Here's the script and the output it's showing:
What I want to get is the number 1 in the result column and the name of the VMs with Old Snapshots in the OldSnapshots column. I've tried various options for the Interpret output with and other settings but can't get it to work.
Sometimes it looks like it works, but still shows an error. Then it will have NoData in the Raw Data area. Is it because it's text and not a number?
I'm just spinning my wheels at this point so any help would be great.
Thanks.