Bulk replace owner / permissions on user’s server based home directory
This is useful if you want to start using quotas and all home drives are owned by local administrator. Or when you just want to tidy-up/reset access control on users home dirs.
Bulk replace NTFS owner using folder name
- Get subinacl.exe
-Run:
for /d %%i in (*) do subinacl /errorlog=subinacl.err /subdirectories %%i*.* /setowner=%%i
Bulk replace NTFS permissions using folder name
-Get SetACL.exe
-Run:
for /D %%u in (*.) DO SetACL.exe -on %%u -ot file -actn ace -ace “n:domain%%u;p:change” >>log.txt
about 1 year ago
hi,
how to use this? make a bat file?
do i need to change anything that suits my situation? like a path or something?
i’ve tried some things and it gives me this error: 1337 The security ID structure is invalid.
please let me know