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

How to redirect and append output to a log file from the copy-item -verbose command?

$
0
0

(1) I am not using powershell 3.0 so cannot use 4>&1 > $LogFileName

(2) Tried using Start-Transcript and Stop-Transcript but still the output is sceen on the screen.


Below is the copy-item.....
Copy-Item -Path $SourchPath -Destination $DestinationPath  -Force -Recurse –Verbose


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

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