Quantcast
Viewing all articles
Browse latest Browse all 232413

Re: Exporting Group-Objects by entities to CSV

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


Viewing all articles
Browse latest Browse all 232413

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>