Robocopy \\TestSource\ShareA \\TestDestination\ShareA /MIR /COPYALL /DCOPY:T /R:1 /W:1 /NP /TEE /LOG:C:\Logs\ShareA-RobocopyResults.log TITLE “Copying ShareA from TestSource to TestDestination”
Robocopy \\serverSource\ShareA \\serverDestination\ShareA /MIR /COPYALL /DCOPY:T /R:1 /W:1 /NP /TEE /LOG:d:\temp\ShareA-RobocopyResults.logĬheck the log files for errors when it is done.
How do i copy files from one server to another server and keep the NTFS security?Ĭheck you have a file share on source server.Ĭreate a file share on destination server.Įnsure that the user running the script is local administrator on both serversĮnter below line (modify it for your server names)