Removing CSV Headers

by Aug 26, 2011

Try this to remove column headers from a CSV file:

$result = get-process | ConvertTo-Csv -Delimiter ";"
$count = $result.Count -1
$result[2..$count] | Out-File $home\test.csv
notepad $home\test.csv

You can also use this to append raw CSV data to an existing CSV file without appending new header lines.

Twitter This Tip!
ReTweet this Tip!