Share via


Access denied in XCOPY

Question

Tuesday, May 27, 2014 3:10 AM

Hi,

I am trying to move all files / folders from one file server (Win 2003 R2) to another (Win 2012).

Since I want keep all the NTFS permission, thus xopy is used.

xcopy "filesvr_old\account" "filesvr_new\account" /o /x /e /t /s /i (Executed on filesvr_new)

But Access Denied shown only. It's succeed to copy if no "/o /x".

(Confirmed user no filesvr_new have administrator permission to access source folder.)

How to fix this ?? Thanks

All replies (2)

Wednesday, May 28, 2014 7:38 AM âś…Answered

Hi,

It seems that the user does not have permission to copy the NTFS permission. Please try to create a test account to try the steps:

1. Add the new account to the folders with full control permission and try to xcopy again.

2. If not work, take ownership and try again.

3. If still not work, clear all permissions and only add the new account with full control to test.

Regards,

Mandy

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.


Tuesday, May 27, 2014 8:17 AM

1. Are servers in the same domain?

2. Is there common authentication protocol?

3. There may be an workaround. Catch security with cacls, copy files and folders, reestablish security with cacls.

Rgds

Milos