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

Identifying NTFS Folder Permission Differences

$
0
0

I've taken on the task of doing folder/file cleanup on our NAS and I've run into a scenario where I'm definitely thinking that Powershell can really help. To note, my PS experience is limited at best. I'm familair with some of the AD/Office 365 cmdlets from my daily tasks but do not have a ton of experience when creating advanced scripts.

I have a parent folder on our NAS with a large amount of access entries on it. This parent folder has hundreds of subfolders. I'm doing some organization of the access entries, but over the years, inheritance has been broken on several subfolders and ACLs have been changed. I'd like to develop a script (or be pointed towards a good resource) that I can recursively run against my parent folder and get a list of subfolders where the ACL is different than that of the parent folder.

I'm thinking that I can leverage both the Get-ChildItem and Get-Acl cmdlets to accomplish what I want but I'm having some difficulty in bringing it all together.

I appreciate any advice that you can share with me or resources that you can point me to.

Thank you!


Viewing all articles
Browse latest Browse all 6937

Trending Articles