Powershell Tip #120: List the headers of a CSV file By powershellgu | October 22, 2016 2 Comments Tip: You can list the headers of a CSV file. PowerShell Import-Csv -Path .\services.csv | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name | Sort-Object 1 Import-Csv -Path .\services.csv | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name | Sort-Object
Pingback: Powershell Tip #121: Get total RAM installed | Powershell Guru
Pingback: Powershell Tip #119: Increase the number of lines sent to pipeline with Get-Content | Powershell Guru