Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Display and Write Output

$
0
0

Summary: Learn to display output and write it to a text file.

Hey, Scripting Guy! Question I need to display process output at the Windows PowerShell prompt and write that same output to a text file. How can I do this?

Hey, Scripting Guy! Answer Get-process | Tee-Object -FilePath c:\fso\proc.txt


Viewing all articles
Browse latest Browse all 3333

Trending Articles