We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

smokysteve
smokysteve asked
on
Medium Priority
341 Views
Last Modified: 2010-04-18
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!
Comment
Watch Question

Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
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.

Author

Commented:
Thanks! I might as use what's included with Windows. (Xcopy) - would the /o switch do the trick?
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
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

Author

Commented:
Thanks! So far I've come up with: xcopy <source> <destination> /e /c /h /q /k /o
Technology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013
Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.