This command creates a node template named NodeTemplate1 and associates the operating system image named MyImage with the node template.
This example also specifies that the deployment process should multicast the operating system image, and specifies a product key for activating the operating system.
This example requires that the HPC cluster has only one image named MyImage.
Example 4: Create a node template, associate it with an operating system image, and specify which updates to apply
This command creates a node template named NodeTemplate2 and associates the operating system image named MyImage from the Windows Image (.wim) file named MyImages.wim with the node template.
This example also specifies that only critical updates should be applied when you deploy or update nodes that are associated with the node template.
Parameters
-AdminCredential
Specifies a PSCredential object for the administrator credential that you want to use when you deploy the node, if you do not want to use an automatically generated credential.
Use the Get-Credential cmdlet to get a PSCredential object.
The user name for this credential must be Administrator.
You can only specify this parameter if you specified an image for the node template by specifying the Image or ImageName parameter.
If you do not specify the AdminCredential parameter when you specify an image for the node template, the New-HpcNodeTemplate cmdlet automatically generates the credentials and password for the Administrator.
Parameter properties
Type:
PSCredential
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Image
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Name
Position:
Named
Mandatory:
False
Value from pipeline:
False
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
-ConfirmPassword
Indicates whether to prompt the user for the administrator password when deploying the node.
A nonzero value or $True prompts the user for the administrator password that you want to use when deploying the node.
A value of 0 or $False does not prompt the user for the administrator password that you want to use when deploying the node.
This parameter was introduced in HPC Pack 2008 R2.
It is not available in previous versions.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Image
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Name
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Description
Specifies a description to use for the node template.
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
-Image
Specifies an HpcImage object for the operating system image that you want to associate with the new node template.
When you deploy a compute node with the node template, the deployment process installs the operating system from this image.
Use the Get-HpcImage cmdlet to get an HpcImage object for an operating system image.
You cannot specify the Image parameter if you specify the ImageName parameter or both the ImageName and WimFileName parameters.
Parameter properties
Type:
HpcImage
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Image
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ImageName
Specifies the name of the operating system image that you want to associate with the new node template.
When you deploy a compute node with the node template, the deployment process installs the operating system from this image.
Use the Get-HpcImage cmdlet to view the names of the available operating system images.
You cannot specify both the ImageName and Image parameters.
If you specify a name for the ImageName parameter that multiple Windows Image (.wim) files share, you must also specify the name of the .wim file with the WimFileName parameter.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Name
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Multicast
Indicates that this operation multicasts the operating system image during the deployment of nodes that are associated with the new node template.
You can only specify the Multicast parameter if you also specify the Image or ImageName parameter.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Image
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Name
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Name
Specifies the name to use for the new node template.
The maximum length of the name is 250 characters.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
1
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ProductKey
Specifies a product key to use to activate the operating system on nodes that are associated with the node template.
The format of the product key consists of five groups of five alphanumeric characters separated by hyphens (-).
You can specify the ProductKey parameter only if you also specify the Image or the ImageName parameter.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Image
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Name
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 for the cluster to which you want to add the node template.
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
-Type
Specifies the type of node to which the node template should apply.
The acceptable values for this parameter are:
BrokerNode
ComputeNode
WorkstationNode
This parameter was introduced in HPC Pack 2008 R2.
It is not available in previous versions.
Parameter properties
Type:
InstallHpcType
Default value:
None
Accepted values:
BrokerNode, ComputeNode, WorkstationNode
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
-UpdateCategory
Specifies the category of updates to apply when you update or deploy a node that is associated with the node template.
Valid values are:
All
Critical
None
Specify All to apply all updates, Critical to apply only critical updates, or None to not apply updates.
Parameter properties
Type:
UpdateCategory
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
-UpdateName
Specifies an array of the names of updates to apply when you update or deploy a node that is associated with the node template.
Specify each of the updates by using the Microsoft Knowledge Base number for the update.
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
-WimFileName
Specifies the name of the Windows Image (.wim) file that contains the image.
You cannot specify both the WimFileName and Image parameters.
If you specify the WinFileName parameter, you must also specify the ImageName parameter.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Name
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.
Inputs
HpcImage
Outputs
HpcNodeTemplate
Notes
You must be a cluster administrator to run this cmdlet successfully.