Neally
(Neally)
2
Don’t post massive scripts. We’re all volunteers and we don’t have time to read all that,
nor will we copy, paste, and run it. Post an excerpt, and clearly state what you’re having
problems with.
Good question.I have not actually read though, but you might be able to use ‘-erroraction continue’
With something like you might be able to get the error, unless it comes from robocopy, robocopy can log too
$date = Get-Date
$error[0] | out-file "c:\error-$date.txt"
robocopy $from $to /log:c:\logfile.txt
2 Spice ups