December 3rd, 2013

PowerTip: Use PowerShell to Write Process Information to Text File

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to write process information to a text file.

Hey, Scripting Guy! Question How can I use Windows PowerShell to document information about currently running processes by writing the information to a text file?

Hey, Scripting Guy! Answer Use the Get-Process cmdlet and pipe the results to the Out-File cmdlet:

Get-Process | Out-File -FilePath c:\fso\process.txt

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.