takeown /f "C:\path\to\folder" /r /d y /R: Makes the Takeown.exe command apply recursively to all files and subfolders within the specified folder. This is useful when you want to take ownership of an entire directory tree. Example: ...
First we took the root folder ownership using following subinacl /file “PATH” /setowner=Administrators Later we use following switches to take the ownership on all subfolders & files. subinacl /subdirectories “PATH*.*” /setowner=Administrators Once done, you will get following message. Note:...