I am middle of a project to migrate shared folders from NetApp CIFS to Windows Storage Server and was trying below switches of robocopy.
#robocopy M:\ "D:\Shares\xxxxx" /e /copyall /R:1 /W:3 /v /log:C:\logs\log1.txt
Which was not copying NTFS permission and giving below error
Robocopy ERROR 1314 (0x00000522) Copying NTFS Security to Destination Directory
After some some attempts and goggling find that below is the right switches to copy all including NTFS ACL.
#robocopy M:\ "D:\Shares\xxxxx" /e /zb /COPY:DATSO /r:0 /w:0 /xJ /v /log: