I’m pretty new to powershell scripting (nearly 1 month since I started learning powershell.)
I’m currently working on a script with powershell 2.0 to clean folder NTFS ACL. I want to delete every acl except the administrator one.
My problem is that I can’t find a way to delete every acl that are not administrator, without knowing them.
So I came here to sought for powershell pro.
This code remove acl :
This code add administrator acl :
Hope this will help someone 🙂