November 21st, 2013

PowerTip: Save PowerShell Cmdlet Info as CSV File

Doctor Scripto
Scripter

Summary: Save Windows PowerShell cmdlet information as a .csv file.

Hey, Scripting Guy! Question How can I save information from a Windows PowerShell cmdlet as a .csv file so I can open it in Excel for processing?

Hey, Scripting Guy! AnswerPipe the Windows PowerShell cmdlet information to the Export-CSV cmdlet, specify the path to store the file,
          and use the –NoTypeInformation switch:

Get-Process | Export-Csv -Path c:\fso\proc.csv  –NoTypeInformation

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.