top of page

PowerShell Export-CSV & Out-File


The EXPORT-CSV allows you to export results into a CSV file

The -NoTypeInformation removes some unneeded text from the beginning of the output

The -Append allows one to append to a file

The Invoke-Item opens the file


   Get-Service | Select * | Export-Csv C:\temp\Services.csv -Append -NoTypeInformation
   Invoke-Item C:\temp\Services.csv 


# Simple Export of Results to Text File. 


Get-Service | Select Name, Status | Out-File C:\temp\MyText.txt


invoke-item C:\Temp\MyText.txt

bottom of page