最好的方法来处理的Windows ACL权限 [英] Best way to manipulate Windows ACL permissions
本文介绍了最好的方法来处理的Windows ACL权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的目标是找出如何以编程方式调整上的文件和放大器的权限;目录在Windows中使用.NET。
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(呸!)
- Active Directory服务接口(COM ...啊...)
- 的Windows PowerShell(?)
- 在谷歌的一个易于使用的门面。
- 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?
推荐答案
您可以做这种类型的事情使用的 FileSecurity 类
You can do this type of thing using the FileSecurity class
这篇关于最好的方法来处理的Windows ACL权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文