Welcome,
On windows 2003 was working
dsacls "OU=..." /S /T
Now i got error:
The parameter is incorrect.
The command failed to complete successfully
So How to restore security settings on OU and all objects inside ?
for /f "tokens=*" %i in ('"dsquery computer OU.. -limit 0"') do dsacls %i /resetDefaultDACL /resetDefaultSACL /takeOwnership
Is it ok ? but how for all objects not related to type cumputer,user,group etc