Export-Csv
SafeExport to CSV
... | Export-Csv out.csv -NoTypeInformation
Turns results into Excel-ready CSV. -NoTypeInformation is near-mandatory; UTF8 for Japanese.
Examples
Get-Service | Export-Csv svc.csv -NoTypeInformation -Encoding UTF8Services to CSV
Syntax
<cmd> | Export-Csv <path> -NoTypeInformation [-Encoding UTF8]
Before you run it
Output only (may overwrite).
Related commands
- ConvertTo-JsonConvert to/from JSON
- Out-FileSave output to a file
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store