TaskSecurityResetAccessRule Method
Removes all access control rules with the same user as the specified rule, regardless of
AccessControlType, and then adds the specified rule.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public void ResetAccessRule(
TaskAccessRule rule
)
Parameters
- rule TaskAccessRule
- The TaskAccessRule to add. The user specified by this rule determines the rules to remove before this rule is added.