Share via


Get-HpcJobCredential

Gets the credentials for submitting jobs.

Syntax

Default (Default)

Get-HpcJobCredential
    [-ClusterConnectionString <String[]>]
    [-Scheduler <String[]>]
    [<CommonParameters>]

Description

The Get-HpcJobCredential cmdlet gets the certificate credentials for submitting jobs. This cmdlet returns a list of HPC soft card certificates with their thumbprints and the dates for which they are valid. For most users, this list will have only one entry. If none exist, nothing is returned.

Examples

Example 1: Get all certificates for the job scheduler

PS C:\>$List = Get-HpcJobCredential -Scheduler "MyHeadNode"

This command gets a list of all certificates that are currently being used by the HPC scheduler.

Parameters

-ClusterConnectionString

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

-Scheduler

Specifies the host name or IP address of the head node that contains the credentials. 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

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.

Notes

  • This cmdlet was introduced in HPC Pack 2008 R2 with Service Pack 2 (SP2). It is not supported in previous versions.