Recursively set ownership in Windows



I have a folder data with stuff in it. I am not using an Administrator account on my Windows machine, and that folder is supposed to be owned by my user. When you search for how to take ownership of all files and folders in a certain directory recursively, you get told to use TAKEOWN, a lot. Well, it has a little catch: You can only really use it to take ownership. Not to give it. A much more giving command is
ICACLS C:\data /setowner rattle /T
Oh yea, it's the /T switch that makes it recursive.

Leave a Reply

Your email address will not be published.