Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Replace (Or Edit) CSV Header Row

$
0
0

Hi David,

you can using Import-Csv as well.
Here is example

=> gsv b* | select Name,DisplayName,Status | export-csv C:\my.csv -NoTypeInformation
=> Import-Csv C:\my.csv | select @{Name = "ServiceName"; Expression = {$_."Name"}}, @{Name = "LocalizedName"; Expression = {$_."DisplayName"}}, status
ServiceName LocalizedName Status
----------- ------------- ------
BDESVC BitLocker Drive Encryption Service Stopped
BFE Base Filtering Engine Running
BITS Background Intelligent Transfer Service Running
Browser Computer Browser Running
bthserv Bluetooth Support Service Stopped


Viewing all articles
Browse latest Browse all 13067

Trending Articles