Return to site

Copy files between windows servers

broken image

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”

broken image

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.

broken image

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)