PowerTip: Display and Write Output

PowerTip: Display and Write Output

Rate This
  • Comments 3

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

Leave a Comment
  • Please add 8 and 7 and type the answer here:
  • Post
  • Hi

    another variant:

    PS II> &{($a=gps);$a>g.txt}

  • @Walid Toumi very good. I like it. thanks for sharing!

  • very funny

Page 1 of 1 (3 items)