Skip to content

Instantly share code, notes, and snippets.

@Sy3Omda
Last active April 25, 2025 18:15
Show Gist options
  • Save Sy3Omda/6ad50cb7ca554d82dd4f64bb943a5889 to your computer and use it in GitHub Desktop.
Save Sy3Omda/6ad50cb7ca554d82dd4f64bb943a5889 to your computer and use it in GitHub Desktop.
Robocopy commands for file transfer: one with admin access (/COPYALL) and one without (/COPY:DAT). Includes retry, verbose logging, progress, and desktop log output.

With Administrative Access

robocopy \\source_server\path \\destination_server\share\path /E /COPYALL /ZB /R:5 /W:10 /J /V /ETA /TEE /LOG+:%USERPROFILE%\Desktop\robocopy_log.txt

Without Administrative Access

robocopy \\source_server\path \\destination_server\share\path /E /COPY:DAT /R:5 /W:10 /J /V /ETA /TEE /LOG+:%USERPROFILE%\Desktop\robocopy_log.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment