Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Redirect output of a script to a file

$
0
0

Hello

I have a main script which calls other scripts and their functions. These functions contain Write-Host, Read-Host, Write-Error functions and some variables (as $ServiceList)

How can I log all of output of the my program to a file.

I tired Start/Stop Transaction, >>, Out-File, Tee-Object etc. But they didn't work.



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>