Reputation: 1169
I have a Powershell script running some hours. The execution shall be observed in a normal console window. Additionally (no redirect!) I would like to stream the output to a log file. Is there an easy way to do this during starting the *.ps1 script? All suggestions I found tell me how to redirect, but not both for the whole script.
Upvotes: 4
Views: 653