We help IT Professionals succeed at work.

Robocopy directories and permissions between server 2003 and 2012

Last Modified: 2018-02-02
Looking to use below command

To copy all contents including empty directories of SourceFolder to DestinationFolder:

Robocopy C:\SourceDir C:\DestDir /E

With ROBOCOPY <Source> <Target> /E /Copy:S /IS /IT

As per https://social.technet.microsoft.com/wiki/contents/articles/1073.robocopy-and-a-few-examples.aspx#Simple_copy

Haven't used Robocopy for a good while, maybe 8 years but current AD setup i've inherited is in a huge mess

Where is the best machine to use robocopy from (I'm guessing the 2012 server) and do all directories have to be shared to my admin account in order for it to work?
Watch Question

NVITEnd-user support

Robocopy C:\SourceDir C:\DestDir /E is ok to use. Just note that existing files in the destination, if any, are not erased. This would be useful for an archive type destination.

Are you moving the files to another server or share? If so, you may want to make an exact "mirrored" copy. For that, you can use:
ROBOCOPY <Source> <Target> /Mir
The /MIR switch erases existing files in the destination, if any.

ROBOCOPY <Source> <Target> /E /Copy:S /IS /IT
That refreshes the file security info, i.e. permissions, for all files, without copying any files. This would usually be used if you copied the files earlier but now you just want to refresh the security info. http://blogs.technet.com/b/filecab/archive/2008/07/31/robocopy-mir-switch-mirroring-file-permissions.aspx


Thanks is there a best machine to use robocopy from

I was going to use 2012 server also does everything have to be shared in order to mirror directories

I didn't think it had to be but got a few robocopy errors with shares not being found etc for those non shared drives unless I put the \\unc details incorrectly
End-user support
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)


Thanks :)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions