The permissions of a subdirectory are not copied correctly by the “Robocopy /Mir /SEC” command in Windows Vista or in Windows Server 2008
Consider the following scenario:
- You set a permission on a parent directory on a computer that is running Windows Vista or Windows Server 2008.
- You configure a subdirectory to inherit permissions from the parent directory.
- You copy the subdirectory to a target directory by using the Robocopy command together with the /Mir /SEC switch.
In this scenario, the subdirectory unexpectedly inherits permissions from the target directory. You expect the subdirectory to still inherit permissions from the parent directory.
For more information on this issue, including potential causes, workarounds, and resolutions, see: Microsoft KB Article KB2644882.