We have a Windows Server 2008 shared folder, with the following structure:
Customer info
Customer name (many customers folders)
Project name (many more projects folders)
01 Quotes & Orders
02 Project Management
03 Engineering
04 Misc
I need to change the permission on the 01 Quotes & Orders
folder, inside every \{customer info}\{customer name}\{project name}\
path.
I'm thinking a script that would give me the full path of every 01 Quotes & Orders folder, then use that as an input to change the permissions.
Any guidance would be appreciated.
In PowerShell you could do something like this
Get-ChildItem 'C:\CustomerInfo' -Filter '01 Quotes & Orders' -Recurse
to get a list of all 01 Quotes & Orders
objects. Pipe the output of the above command into a ForEach-Object
loop and use Get-Acl
/Set-Acl
to modify the folders' permissions.