Copy NTFS permissions only and no data from source to target
We have a huge cloud migration coming up and have been syncing data for weeks now. It finally finished syncing, however the sync tool that we use broke the NTFS permissions… so I was looking for a way to export and import the NTFS permissions only.
ICACLS seem to work pretty good for that.
Export --> icacls "\\<servername>\Information\T-E-S-T" /save C:\ACL_info_file /T Import --> icacls "\\<servername>\Information" /restore C:\ACL_info_file
Just a word of warning, the more files and folders you have, the longer it takes. The import took several hours for me.
Source: