LucD wrote:
Do you also get those blank lines when you change the last line to
$allvms | Export-Csv "D:\temp\computers.csv" -NoTypeInformation -UseCulture
Yes, I get the same thing. I was using -NoTypeInformation previously, but that just eliminates the top row.
I can't copy and paste the results into here as it seems the editor window is too smart and removes the extra line, but it shows in notepad and wordpad.
The difference obivously are the header lines between out-file and export-csv.
Geoff