Showing posts with label Robocopy. Show all posts
Showing posts with label Robocopy. Show all posts

Wednesday, 30 April 2014

Simple powershell robocopy log analyser


Select-String -path "\\server\share\logfile.log" -pattern "Access Is Denied" -allm

atches -simplematch -context 1 | out-file '\\server\share\errors.log'

Wednesday, 23 April 2014

Robocopy monitor copying old files

If robocopy /MON or /MOT appears to be re-copying older files still - try these switches:

/XO - Exclude old files
/FFT - Assume FAT file times - allows slightly less sensitivity (2 seconds) when comparing file times.


robocopy SRC DST /copyall /MIR /MON:1 /XO /Z /W:5 /R:5 /fft