Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Find folders and apply permissions

$
0
0

I have a network share setup like this \\server\region\projectxxx\specialists and under the specialists folder there are 6 folders called A, B, C, D, E, F

So for region 1 there may be 15 projects and region 2 there are 30 projects, etc...

Everyone has read access to all folders but for the A,B,C,D,E,F folders there is a security Group called A,B,C etc that  gives modify permissions to the appropriate folder.  

How do I apply permissions to the A,B,C groups using a script?  Can I simply do a search for folders called A and add the Security group A to that folder?


Viewing all articles
Browse latest Browse all 6937