- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should do the ConvertFrom-Csv on the complete output, not just individual entries.
Something like this perhaps?
I don't know what you pass as CSV from the script that runs in the Guest OS
$report = @()
foreach ($task in $tasks) {
$report += $task.Result.ScriptOutp | ConvertFrom-Csv |
Select VM,State,Error,KB,InstallStatus
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference