Powershell: Export object to csv file

Add following to your existing command:

| Export-Csv -Path “mycsv.csv”

This command exports objects representing the processes on the computer to the mycsv.csv file in the current directory.

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-csv?view=powershell-6

 

Leave a comment