Hi Everyone,
I am fairly new to PowerShell but so far I am loving it!
I am currently trying to put together a PowerShell script that will look at all ACL’s within all sub folders of a certain share or folder, then compare those ACL’s against a users group membership. So let’s say Tom says "I want Jerry to have the same access as I do, but ONLY for the CONSTRUCTION share and all of it’s sub folders, no other areas outside of the CONSTRUCTION folder. I would like to then see all the groups that Tom is a member of that reside within the CONSTRUCTION folder’s subs so then I can add Jerry to only those groups.
So far I have a few pieces that I think I need, but am not quite sure how to piece them together to give me what I need:
This will give me a list of the ACL’s, but only for this folder
This will give me a list of all sub folders within CONSTRUCTION
This will give me a list of all the groups Tom is a member of
Now for the hard part, which is to string it all together so I can say "Ok, THESE are the groups that I need to add Jerry to in order to have his access be the same as Tom’s within the CONSTRUCTION folder and its subs only (as some sub folders may have different acl’s than the parent and I want him added to those as well).
As I say, I am new to PowerShell so please let me know if I am way off base with these cmndlets. Any help that can be offered would be greatly appreciated. Thanks in advance!