My goal is to find out how to programmatically adjust permissions on files & directories in Windows using .NET.
I have identified the following options:
- Windows API (yuck!)
- Active Directory Service Interfaces (COM... ugh...)
- Windows PowerShell (?)
- 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?
You can do this type of thing using the FileSecurity class