Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

First of all I'm not a Windows administrator so that perhaps this question is total nonsense.

We are going to migrate our Windows file server to another machine, the people who are going to do the job know how to replicate the folders and files (copy/paste perhaps?) but they don't know how to migrate the file and folder user permissions.

Is there a tool to do it automatically?

By searching through Stackoverflow I see there is a windows command "CACLS" which shows and sets permissions, so that i can write a program which loops through the file system and calls the command to show and set the permissions.

Is this aproximation ok?

P.S. Sorry for my bad english

share|improve this question
1  
@Telcontar: No worries on the English! My hats off to anyone who can get their point across in multiple languages. –  squillman Sep 22 '09 at 15:47
    
Agreed!-------- –  Izzy Sep 22 '09 at 15:48

2 Answers 2

The XCOPY command will copy permissions when the "/O" or "/X" switches are set. You can accomplish most simple file/folder/permission migrations just by doing:

XCOPY "source" "destination" /E /X /C /H /K

If you have deep folder hierarchies with long paths you'll need a "heavier duty" tool.

share|improve this answer

You need to use the Microsoft File Server Migration Toolkit. (Info | Download)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.