Share via


Set-HpcJobTemplateAcl

Sets the ACL on a job template.

Syntax

profile (Default)

Set-HpcJobTemplateAcl
    -Template <HpcJobTemplate>
    -Acl <HpcJobTemplateSecurityDescriptor>
    [-ClusterConnectionString <String[]>]
    [-Scheduler <String[]>]
    [<CommonParameters>]

name

Set-HpcJobTemplateAcl
    [-Name] <String>
    -Acl <HpcJobTemplateSecurityDescriptor>
    [-ClusterConnectionString <String[]>]
    [-Scheduler <String[]>]
    [<CommonParameters>]

Description

The Set-HpcJobTemplateAcl cmdlet sets the access control list (ACL) on the specified job template. You can get an ACL for another job template by using the Get-HpcJobTemplateAcl cmdlet and then set that ACL on another job template to copy permissions between job templates. You can also modify the ACL before you apply it to another job template by using .NET application programming interfaces (APIs).

Examples

Example 1: Copy an ACL and set its name

PS C:\>Get-HpcJobTemplateAcl -Name "Default" | Set-HpcJobTemplateAcl -Name "Template 2"

This command copies the ACL from the default job template named Template 2.

Parameters

-Acl

Specifies an HpcJobTemplateSecurityDescriptor object for the ACL that you want to set on the template. Use the Get-HpcJobTemplateAcl cmdlet to get the HpcJobTemplateSecurityDescriptor object, and modify that object with .NET APIs if needed.

Parameter properties

Type:HpcJobTemplateSecurityDescriptor
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ClusterConnectionString

Specifies an array of cluster connection strings for the cluster to which you want to add the device drivers. The value format is host1,host2,host3. If you do not specify the ClusterConnectionString parameter, this cmdlet uses the connection string on the head node that the CCP_CONNECTIONSTRING environment variable specifies. To set this environment variable, run the following cmdlet: Set-Content Env: CCP_CONNECTIONSTRING \<head_node_name\>.

This parameter was introduced in HPC Pack 2016.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the job template on which you want to set the ACL. The maximum length of the name is 50 characters. You cannot specify both the Name and Template parameters.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

name
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Scheduler

Specifies the host name or IP address of the head node for the cluster that includes the job templates. The value must be a valid computer name or IP address. If you do not specify the Scheduler parameter, this cmdlet uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies. To set this environment variable, run the following cmdlet:

Set-Content Env:CCP_SCHEDULER \<head_node_name\>

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Template

Specifies the HpcJobTemplate object for the job template on which you want to set the ACL. You cannot specify both the Name and Template parameters. Use the Get-HpcJobTemplate cmdlet to get an HpcJobTemplate object for the job template.

Parameter properties

Type:HpcJobTemplate
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

profile
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

HpcJobTemplateSecurityDescriptor

Outputs

None

Notes

  • Only users who have permission to modify the job template can set permissions on the template.
  • You must be a cluster administrator to run this cmdlet successfully.