ActiveDirectorySecurity.ResetAccessRule Method (ActiveDirectoryAccessRule)
Searches an object's DACL for all access rules that contain a security identifier (SID) that matches the SID specified in the rule object, and replaces all of those access rules with the access rules that are contained in the rule object.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
When SetAccessRule instead.is used to replace all access rules with a particular SID in an object's DACL, both Allow- and Deny- type rules are replaced. To replace only Allow rules without affecting Deny rules, or to replace Deny rules without affecting Allow rules, use
Available since 2.0