Best way to manipulate Windows ACL permissions

2019-06-05 05:45发布

My goal is to find out how to programmatically adjust permissions on files & directories in Windows using .NET.

I have identified the following options:

  1. Windows API (yuck!)
  2. Active Directory Service Interfaces (COM... ugh...)
  3. Windows PowerShell (?)
  4. Google for an easy-to-use facade.

None of these seem very palatable to me. Which route would you guys take? Perhaps there's another way?

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-06-05 06:28

You can do this type of thing using the FileSecurity class

查看更多
登录 后发表回答