Hello,
I'm writing a script to delete old backup files, but I want to be able to see what files were deleted.
I have tried using Start-Transcript /Stop-Transcript and it works but its not very presentable when viewing it.
I have also tried using | Add-Content $logfile but all that seems to do is added the files names to the logfile that are older than 30days
I just need this -Verbose output to be added to a Logfile