jobtemplate deny
Applies To: Microsoft HPC Pack 2012, Microsoft HPC Pack 2012 R2
Sets permissions that are denied to a specified user for a specified job template.
For examples of how to use this command, see Examples.
Syntax
jobtemplate deny <job_template_name> <domain>\<user_name> /perm:{F|M|S}
[/replace[:{true|false}]] [/scheduler:<name>]
jobtemplate deny {/? | /help}
Parameters
Parameter |
Description |
---|---|
<job_template_name> |
Specifies the name of the job template for which you want to set permissions. |
<domain>\<user_name> |
Specifies the domain and user name for the account for which you want to deny permissions for the job template. |
/perm:{F|M|S} |
Specifies the level of permission to deny. Specify F to deny full control, M to deny permission to modify the job template, or S to deny permission to submit jobs to which the job template is assigned. |
/replace[:{true|false}] |
Specifies whether to replace the existing permissions that the specified user has for the job template with the permissions that the /perm parameter specifies. A value of True indicates that the existing permissions that the specified user has for the job template should be replaced. A value of False indicates that the existing permissions should be combined with permission that the /perm parameter specifies. |
/scheduler:<name> |
Specifies the host name or IP address of the head node for the cluster that contains the job template. The value must be a valid computer name or IP address. If you do not specify the /scheduler parameter, this command uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies. |
/? |
Displays Help at the command prompt. |
/help |
Displays Help at the command prompt. |
Remarks
Only users who have Modify permissions on the job template can set permissions on the template.
Examples
To deny Modify permissions to the user with a user name of someone in the CONTOSO domain for the job template named MyJobTemplate, use the following command:
jobtemplate deny MyJobTemplate CONTOSO\someone /perm:M
To deny full control to the user with a user name of user2 in the CONTOSO domain for the job template named JobTemplate5, and then replace the existing permissions for that user for that job template, use the following command:
jobtemplate deny JobTemplate5 CONTOSO\user2 /perm:F /replace:true