Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 C# 以编程方式更改/检查 NETWORK SERVICE 帐户的特定文件夹的权限(读取、写入、...)?
没有通用的“查找此用户对此文件系统/系统/域功能上的所有对象拥有的所有权限”。
对于 ACL 向 .Net 框架公开的对象,它们通常公开一个“GetAccessControl()”方法,您可以从中枚举 AccessRules(通过“GetAccessRules()”),并找到适用于 NETWORK SERVICE 的规则