migrating files from a W2K8r2 server to a W2K12r2 server

I am in the process of migrating data files from a W2K8r2 server to a W2K12r2 server and the problem I am having is the file permissions and shares aren't migrating with them. How can I migrate the files and keep the share/file permissions?
jfhollowaySr. Systems AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FOXActive Directory/Exchange EngineerCommented:
your best bet is to use robocopy to keep the file permissions, date stamps and all.
robocopy \\sourceservername\path \\destinationserver\path /s /e  /copyall /mir /v /tee Log:c:\temp\report.txt

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FOXActive Directory/Exchange EngineerCommented:
The below link will show you how to restore the exact shares you had on the source server to the new server

https://support.microsoft.com/en-us/kb/125996
jfhollowaySr. Systems AdministratorAuthor Commented:
That answers part of it but, it doesn't copy folder security for folders that aren't shared. I need to copy the security accounts on the security tab of the individual folders even if they aren't shared.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

FOXActive Directory/Exchange EngineerCommented:
JF, the robocopy command I sent you will in fact copy the security accounts over.  It is a 2 part process...you run the robocopy command and afterwards you do the regedit for the shares on the outside.  Run the robocopy with the switches I put up and you will see it copies over everything.
FOXActive Directory/Exchange EngineerCommented:
I had to do the same thing you are trying to do yesterday. Verification of the switches below

https://technet.microsoft.com/en-us/library/cc733145.aspx
NVITEnd-user supportCommented:
> ...problem I am having is the file permissions and shares aren't migrating with them
Have you tried something before posting here? What specific issues occur?

The robocopy method by foxluv should help for the security permissions. The Share method should help, also.

Still, beware the robocopy /MIR switch, which mirrors the source to the target, i.e. existing files not at the target that are not at the source are deleted.
Anand PandyaCommented:
In case if you are confused with the command line switches, you can also download the GUI version of Robocopy.
https://techjourney.net/microsoft-robocopy-gui-free-download/

You can transfer few folders and check it it works as your need than you can go ahead with more folders.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.