Add an Authorization Rule to a Task Definition
Applies To: Windows 7, Windows 8, Windows Server 2008 R2, Windows Server 2012
Authorization rules can be used to define a task or a role. For information about using rules, see "Additional references" in this topic.
You must be assigned to the Authorization Manager Administrator user role to complete this procedure. By default, Administrators is the minimum Windows group membership assigned to this role. Review the details in "Additional considerations" in this topic.
Add an authorization rule to a task definition
If necessary, open Authorization Manager.
If necessary, open or create an authorization store containing an application.
In the console tree, expand the application, expand the Definitions folder, and then click Task Definitions . Rules may be used with either application-level or scope-level tasks.
In the list of tasks, right-click a task, and click Properties .
In the property sheet, click the Definition tab.
Click Authorization Rule .
In the Script path box, type the location and name of a text file containing the source code for the script you want to load, or click Browse to locate the file.
Click either VBScript or Jscript as the Script type .
Click Reload Rule into Store .
Click OK .
To perform this procedure, you need to have access to an authorization store. By default, members of the Administrators group have the required access, but Authorization Manager allows you to delegate responsibility. For more information, see Allow Other Users to Administer an Authorization Store.
To perform this procedure by using the Authorization Manager snap-in, you must be using developer mode.