Skip to content

SDF-REP-02 โ€” Out-File

Purpose:
To save PowerShell output as a plain text file for documentation or review.


๐Ÿงญ Script Example

Get-Service | Out-File -FilePath "services.txt"

๐Ÿ“ Output

  • File: services.txt
  • Format: Plain text
  • Use: Readable log of service status

๐Ÿง  Reflection

  • Was the text file easier to share than CSV?
  • Did it preserve formatting clearly?