Cacls:
for /D %%i in (*) do (
cacls %%i /T /E /G yourdomain\domain admins:F
cacls %%i /T /E /G yourdomain\%%i:c
cacls %%i /T /E /G yourdomain
\storageAdmins:c
)
Subinacl:
for /D %%i in (*) do ( subinacl /file %%i /grant=yourdomain\%%i=C "/grant=yourdomain\domain admins=f" /grant=yourdomain\storageAdmins
=c /setowner=yourdomain\%%i
subinacl /subdirectories %%i\* /grant=yourdomain\%%i=f “/grant=yourdomain\domain admins=f” /grant=yourdomain\AreaViewer=r /setowner=yourdomain\%%i )