Copy windows files and permissions from one server to another?

I need to copy a set of folders from one server to a new server. I would like to keep all permissions and share intact.

Would I do this with xCopy?

Additionally, how do i copy cross machine?

The machine names are DC4 and DC5, I need to copy an entire drive, (D:\)
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.

Brad HoweDevOps ManagerCommented:

I would you ROBOCOPY with the following switches

robocopy D:\ \\SERVERNAME\D$ /COPYALL /E /R:0 /DCOPY:T

robocopy /? will give you the command line switches. Essentially, this copies everyhitng keeping permissions and date timestamps intact.



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
Best tool for this is robocopy.  This allows you a great deal of flexibility and allows you to see logs of success / failure.

Get it here:

Brad HoweDevOps ManagerCommented:
AS per the custom shares. As long as the drive letters are the same, you can do the following.

Saving and restoring existing Windows shares

Make a registry export from server1 and import to server2.

Darius GhassemCommented:
Lee W, MVPTechnology and Business Process AdvisorCommented:
I would test my backups - restore the last full backup and then, if necessary, run robocopy to copy files since the last full backup.
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.