Skip to content

SDF-REP-01 โ€” Export-Csv

Purpose:
To export PowerShell output into a structured CSV file for reporting and archival.


๐Ÿงญ Script Example

Get-Process | Sort-Object CPU -Descending | Export-Csv -Path "cpu-usage.csv" -NoTypeInformation

๐Ÿ“ Output

  • File: cpu-usage.csv
  • Format: Comma-separated values
  • Use: Open in Excel or any spreadsheet tool

๐Ÿง  Reflection

  • Did the exported data match your live observation?
  • Was the file readable and reusable?