Discussion Locked

permissions and shares

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We need to move many folders from one NTFS partition to another NTFS partition on the same server. We need to maintain the permissions and shares for each folder/file. I believe going to a DOS prompt and using xcopy *.* destination /v /s /e /k /r /h /o /x will copy every file in the source folder while:
v - verifing each file
s - maintaining directory structure
e - including empty subdirectories
k - maintaining the read-only attribute
r - including the read-only files (see above)
h - hidden files
o - maintains NTFS permissions
x - sacl permissions.

Will this work if changing partitions? Am I missing or misunderstanding anything about xcopy?

7 replies

by lowlands

xcopy *.* destination /v /e /k /r /h /o /x /Y /C
/s and /e are opposites.

This will copy your files and there permissions, but only if you are currently using domain accounts or general local accounts (like the users group).

It will however not migrate your shares. Check this techrepublic article about migrating shares:
https://www.techrepublic.com.com/5100-1035_11-5692540.html

This discussion is closed to new replies.