PowerShell: Create CSV without Header August 9, 2011 Konstantin Vlasenko PowerSlim 3 comments get-process | ConvertTo-CSV -NoTypeInformation | select -Skip 1 Share this:ShareClick to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Like this:Like Loading... Related
Very nice – and thank you. Is there a way to import a CSV that already has a header but ignore the first line? Reply
I don’t know the format of CSV you have try this $csv = Get-Content ${File Name} $csv = $csv[1..($csv.count - 1)] or this $csv = Get-Content ${File Name} $csv = $csv[0], $csv[2..($csv.count - 1)] Reply
Very nice – and thank you. Is there a way to import a CSV that already has a header but ignore the first line?
I don’t know the format of CSV you have
try this
or this
I believe it should be the same.