Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 326
  • Last Modified:

Can I copy a folder's user permissions along with the data contained in it?

We started with one server (SBS 2003) and just brought a new server online (W2k3 Standard - in the same domain) and would like to move some shared folders over to it - however the folders have tons of different permissions within its various subfolders...rather than recreate them, is there any way to copy over the permssions along with the data contained in the folder? Thanks!
0
smokysteve
Asked:
smokysteve
  • 3
  • 2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
SCOPY (NT 4 Resource Kit)
XCOPY (built in to all versions of Windows)
ROBOCOPY (Resource kit/extra on the CD)
XXCOPY (third party utility)
Backup programs (Including NT Backup)

All have the ability to copy permissions.  The first four are command line tools.
0
 
smokysteveAuthor Commented:
Thanks! I might as use what's included with Windows. (Xcopy) - would the /o switch do the trick?
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
That's the key one for security - don't forget the others, such as /e for sub directories.  I usually use /E /C /H /O /Y
0
 
smokysteveAuthor Commented:
Thanks! So far I've come up with: xcopy <source> <destination> /e /c /h /q /k /o
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Make sure you put the source and destination in quotes - this will help protect against the possible problems with file names that use spaces.

/Q is unimportant.  /K is ok if you want to preserve the attributes.  You need not use /Y, but if you don't you may regret it.

xcopy "<source>" "<destination>" /e /c /h /q /k /o
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now