This project is read-only.
Role Task
The Role Task is used to check that a specified user accounts belongs to a specific group/role.

General Format
<Task name="RoleTask" description="" domain="" userName="" role="" failAsWarning="" />

Attributes
  • name: specifies the task name - "RoleTask".
  • description: (optional) specifies the text to be displayed in the Task column within the user interface (UI). If you ommit this attribute the task name will be used.
  • domain: (optional) specifies the domain on which the group exists. Leave this attribute empty (or exclude it) to check the local machine.
  • userName: (optional) specifies the (SAM) logon account that will be tested for membership in the specified group/role. Leave this attribute empty (or exclude it) to check the current user account (i.e. the account that is being used to run NDiagnostics).
  • role: specifies the group/role name being tested (e.g. Administrators).
  • failAsWarning: (optional) if specified, and has a value of "true", "yes", or "1", then any errors caught by this task will be treated as warnings. NOTE: This attribute can be applied to any task.
  • disabled: (optional - not shown) if specified, and has a value of "true", "yes", or "1", then this task will not be loaded and will be ignored. NOTE: This attribute can be applied to any task.
NOTE: This task relies on WMI (Windows Management Instrumentation) to retrieve user/group information.

Last edited Nov 27, 2007 at 4:38 AM by jbramwell, version 2

Comments

No comments yet.