When robocopying shared folder NTFS security permissions copy but when I share it again they all get wiped out

I am trying to copy over a file share (called groups) from a 2008 r2 server to another server 2012 and robocopy (see command below) works well for it and copies over everything and maintains the NTFS permissions. However, when I try to share the root folder out again  it resets all the ntfs permissions on all the folders again. How can I do the copying of the share (without unsharing it first at the course as it is a live folder) and then share it on another server with the same name without losing the original ntfs group permissions for all the folders in it?

robocopy "\\tghfs1\e$\groups" "d:\groups" /TEE /LOG+:c:\robolog.txt /MIR /copyall /zb /w:1 /r:2 /E
(executed on the new server - so copying from tghfs1)
Laszlo DenesAsked:
Who is Participating?

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

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.

yo_beeDirector of Information TechnologyCommented:
Share Permissions and NTFS are two different things.  Robocopy does not copy over the shared permissions.
NTFS is always being applied whether the folder is shared or not.
Dariusz TykaICT Infrastructure Specialist Senior Commented:
In addition if you do not want to recreate shares on destination server you can export shares config and import it on tagret machine as per this MS KB:

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
Laszlo DenesAuthor Commented:
Server is different o/s and hardware so that might not be an option.
Dariusz TykaICT Infrastructure Specialist Senior Commented:
Different hardware doesn't matter. Different OS may - but I was able to export import shares between Windows 2003R2 and Windows 2008R2 using this method so you may give it a try.
yo_beeDirector of Information TechnologyCommented:
It's a shame that my comment did not warrant any points. :(
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
file sharing

From novice to tech pro — start learning today.