I want to get the verbose result to a log file in powershell, I m able to see the verbose line in shell but unable to get it into variable or log file
I have used Tee-Object
and given the file path but it dont seems to be working
Move-Item $source $_.File_Destination_Path -Force -Verbose | tee -Append -FilePath $Logfile
Expected output in logfile- "VERBOSE: Performing the operation "Move File...."
But the result is blank, Please help me on this