Thank you in advanced for any help you can give on this issue. I am a complete newb when it comes to powershell and I'm learning it as quickly as I can but I'm in a trial by fire situation.
I need to create a script that does the following:
1) Create a new folder on an existing network share with a series of 11 subfolders to go with it. Straight forward and simple enough but....
2) I Need to assign specific permission to a security group on just about each sub folder. And this is where I get lost
The scenario will play out like this:
1- We would launch a script and a new top level folder on the share would be created called "Folder template" for argument's sake. Upon the folder being created the name will be changed to represent whatever is required.
2- "Folder template" will have 11 subfolders created alongside and inside of it. With static names that will not need to be changed.
2a - inheritance would need to be disabled as not gain the permissions from the share itself
3- There two security groups Write-team and Read-team.
4- the read-team should only be able to open and read every folder.
5- The write team need to be able to
5a - add and edit files in folders 1-5 and 7-10
5b- in folders 6 and 11 they need to be able to write and edit subfolders in files in 6 and 11
5c- they should NOT be able to move, delete, or rename the acutal folder or subfolder itself 6 and 11.
Is this all even possible in one handy dandy convenient script?