views:

220

answers:

1

How can I change / check the permissions (Read, Write,...) for a specific folder for the NETWORK SERVICE account with C# porgrammatically ?

A: 

There's no generic "find all permissions that this user has on all objects on this filesystem/system/domain function".

For objects where the ACLs are exposed to .Net framework, they typically expose a "GetAccessControl()" method, from which you can enumerate the AccessRules (via "GetAccessRules()"), and find those rules which apply to NETWORK SERVICE

Damien_The_Unbeliever