How Can I Bulk Remove Specific File Permissions in PowerShell?

0
10
Asked By CuriousCoder42 On

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

Answered By TechGuru99 On

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!

CuriousCoder42 -

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.