How do I reset all permissions and the default owner in the domain?

How do I reset all permissions and the default owner in the domain? Recursively. Preferably utilitly.
June 26th 19 at 14:10
1 answer
June 26th 19 at 14:12
Solution
GUYS, IT'S JUST A GUN!!!

Barely googled this article
https://support.microsoft.com/ru-ru/help/320081/yo...
In the end there is mention of a certain subinacl and it was decided, specifically to change all files in a directory recursively in the domain has helped this team:

subinacl /subdirectories DIRECTORY/*.* /setowner=DOMAIN\USER

P. S. Program is not included in the official supply that for home systems, but for win server 2008 r2, this is some idiocy in the process gugleniya realized that all this pandemonium with the owner and denials of access in the standard box change owner of the folder recursively, NOT a BUG BUT a FEATURE, it's amazing how sometimes ill wind...
P. P. S. Fuck it, one file standard window holder change in the properties of folders and files works, but damn microsoft is trying to get me to go into each folder and manually change the owner of each file??!! This is perfect for my rapping!

Find more questions by tags Active DirectoryWindows Server