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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store