Você pode tentar usar icacls para fazer backup e restaurar as permissões.
Eu escrevi uma entrada de blog sobre isso .
A simple example shows how to do this using a single command line statement. I want to backup the permissions on the folder E:\ZedaTest and it's subfolders and -files.
To do so, I created a batchfile containing the following command.
icacls.exe E:\Data\Zedatest\* /save E:\Data\acl_zedatest.txt /t /c
This script reads all file permissions of the files and folders including subfolders (/t), ignoring errors (/c). Results are written to the file E:\Data\acl_zedatest.txt. This file looks like this:
Folder1 D:AI(A;OICIID;FA;;;WD)(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA) Folder2 D:AI(A;OICI;FA;;;S-1-5-21-2427325736-2493757636-818923003-2778)(A;OICIID;FA;;;WD)(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA) Folder3 D:AI(A;OICIID;FA;;;WD)(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA) Folder1\testfile1.txt D:AI(A;ID;FA;;;WD)(A;ID;FA;;;SY)(A;ID;FA;;;BA) Folder2\testfile3.txt D:AI(A;ID;FA;;;S-1-5-21-2427325736-2493757636-818923003-2778)(A;ID;FA;;;WD)(A;ID;FA;;;SY)(A;ID;FA;;;BA) Folder3\testfile1.txt D:AI(A;ID;FA;;;WD)(A;ID;FA;;;SY)(A;ID;FA;;;BA) Folder3\testfile2.txt D:AI(A;ID;FA;;;WD)(A;ID;FA;;;SY)(A;ID;FA;;;BA) Folder3\testfile3.txt D:AI(A;ID;FA;;;WD)(A;ID;FA;;;SY)(A;ID;FA;;;BA)