I have a situation like this:
folder1(top folder, user1: full access, user2: full access, user3: full access, system:full)
folder2(nested in folder1, user1:full, user2:full, no inheritance)
folder3(nested in folder1, user3:full, no inheritance)
folder4(nested in folder2, user2: full, no inheritance)
its a file server with fairly complicated user and permission structure.
What i'd like to do(via powershell or cmd) would be to add system:full permission to all files and folders missing it recursively throughout the folder. The file share has 50k folders and 950k files so recreating it from scratch would take forever. The problem is i can't just override inheritance since that would reset all the user settings. Is there a way to run a script that would add permission on all items that are missing it without changing permissions allready set on the folder? I assume i'll also need to take ownership of files i have no control over.