mass setting owner on home directories
After having moved all our home drives onto a new server I now need to set the owners, as we use quotas. NTFS permissions have been preserved it's just the owner.
I have found the following code to run in a batch file:
for /d %%i in (*) do subinacl /errorlog=subinacl.err /subdirectories %%i\*.* /setowner=DOMAIN\%%i
Home directories have the same name as the username
However it is not actually setting anything - subinacl shows 0 for processed and no errors :/
Am I missing something? I've also tried setowner without the domain just in case.