Ok, one more quick question.
Get-VIEvent |?{($_.gettype().name -eq "taskevent")}
I am trying to find where in that object it actually states whether the task errored or completed.
I know I can filter with get-vievent -type, however I don't know its status and I want the get-vievent object to tell me....I see the Error, Result, Progress properties under Info, but I am looking at an event that did fail and all of those properties are empty. So I am not sure how to script a return of the tasks result.
I know I can get the Result and Error from a get-task, but I am trying to get it from get-vievent...
Any other assistance would be much appreciated!!!