I am looking for some advice
I am going through a massive file share but some data i cannot see as users have taken ownership and removed access.
I have noticed that if i take ownership of the folder/file one at a time, then i can add myself backin and not blow away all the other security permissions.
Can this be automated in a batch file/script so that the script goes through each folder and then adds a certain AD account as the owner with full control. I cannot use the "Replace owner on subcontainers and objects" as i do not want to destroy permissions from sub folders.
I hope this makes sense.
Please let me know if more info is needed.