Hey everyone! I'm trying to find a way to delete file permissions from a shared drive, specifically focusing on security groups that start with "DL-". I want to bulk remove these permissions from all the folders at the root level. I've seen a lot of discussions around using the NTFSSecurity module, but I'm wondering if there are better alternatives or tips. Any help you can provide would be greatly appreciated!
1 Answer
You might want to check out the built-in Windows utility called `icacls`. It could work for your needs, plus you can back up your ACLs before making changes just to be safe!

I looked into `icacls`, but it seems like it might not do what I need. I remember needing to use something like `-like "DL-*"` for the specific groups. I’ll revisit it though, thanks for the suggestion!