General discussion

Locked

permissions and shares

By Computer Geek ·
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?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by lowlands In reply to permissions and shares

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:
http://techrepublic.com.com/5100-1035_11-5692540.html

Collapse -

by Computer Geek In reply to

Poster rated this answer.

Collapse -

by JimKlallsoo In reply to permissions and shares

Instead of Xcopy have you tried robocopy?
I believe it's on the resource kit

Collapse -

by Computer Geek In reply to

Poster rated this answer.

Collapse -

by DugaDugDug In reply to permissions and shares

You might also want to take a look at SecureCopy. It is a tool I've successfully used for server consolidation.

http://www.scriptlogic.com/products/securecopy/

Collapse -

by Computer Geek In reply to

Due to locked files and other issues, we just made a backup and restored to different locations.

Collapse -

by Computer Geek In reply to permissions and shares

This question was closed by the author

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums