Windows NTFS Permissions replacing child objects bulk

ntfspermissionswindows

I have about 300 home user folders in a homes share. Each user has modify permissions to their own folder. They are connected to the folder via Active Directory with the \filerserver\homes$\%username% variable.

Each user has modify permissions on their home folder but when I merged their old folders into this one, if they had sub-folders in their home folder, the sub-folders did not inherit the parent NTFS permissions. Therefore, I need to go into each users folder security and click "Replace all child object permissions with inheritable permissions from this object".

Is there a way to bulk apply this but keeping each user with modify permissions to their respectable folders but to also apply to subfolders?

Best Answer

The easiest way, if you can have downtime, is to just do a copy instead of a move like you did. You might have to restore from backup and give it another go.

If you can't do that, you can use get-acl and set-acl in PowerShell to recursively apply permissions to a folder structure.