LucD wrote:
Split the grouping in 2 (1st the VM, then the timestamp).
Something like this
$report | Sort-Object Time | Export-Csv ".\$($vmName).csv" -NoTypeInformation -UseCulture
}
}
Hi Luc,
It indeed works, and I note the loop within a loop which countered my ForEach. I didn't think about defining the name higher up the order.
The bit I don't understand is the "encapsulation" of the $vmName in parentheses preceded by the additional $. Is there some information which you can point me at which explains why this is required?
Geoff