Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
@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

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


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.