views:

175

answers:

1

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?

+2  A: 

You can do this type of thing using the FileSecurity class

PaulG
You are the man!
James Jones