1
2
3
@echo off
for /d %%d in (*.*) do icacls %%d /setowner Domain\%%d /t
for /d %%d in (*.*) do icacls %%d /reset /t