Solved

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

Posted on 2006-10-22
5
313 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!
0
Comment
Question by:smokysteve
  • 3
  • 2
5 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 17785965
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
 

Author Comment

by:smokysteve
ID: 17785998
Thanks! I might as use what's included with Windows. (Xcopy) - would the /o switch do the trick?
0
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 17786017
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
 

Author Comment

by:smokysteve
ID: 17786043
Thanks! So far I've come up with: xcopy <source> <destination> /e /c /h /q /k /o
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 500 total points
ID: 17786066
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now