Set Security Permissions on all Folders entitled "Invoices"

K

Kaleb Hosie

Is there a way in Windows Server 2016 to recursively search through all folders inside a filesystem directory and change the security permissions on any folder or subfolder that has a specific name?

For instance, I would like to take the following folders...

S:\Company\C\Contoso\Invoices

S:\Company\F\Fabrikam\Invoices

... and remove the folder's permission inheritance and give the domain group "Accounts Payable Dept" Read/Write access. At the same time, I do not want to change the permissions for

S:\Company\C\Contoso\Job Templates

S:\Company\F\Fabrikam\Contracts


Any help would be appreciated! Thanks in advance

Continue reading...
 
Back
Top Bottom