New-HpcNodeTemplate
Syntax
![]() |
|
---|---|
Parameter Set: NoImage New-HpcNodeTemplate [-Name] <String> [-Description <String> ] [-Scheduler <String> ] [-Type {<BrokerNode> | <ComputeNode> | <WorkstationNode>} ] [-UpdateCategory <UpdateCategory> ] [-UpdateName <String[]> ] [ <CommonParameters>] Parameter Set: Image New-HpcNodeTemplate [-Name] <String> -Image <HpcImage> [-AdminCredential <PSCredential> ] [-ConfirmPassword] [-Description <String> ] [-Multicast] [-ProductKey <String> ] [-Scheduler <String> ] [-Type {<BrokerNode> | <ComputeNode> | <WorkstationNode>} ] [-UpdateCategory <UpdateCategory> ] [-UpdateName <String[]> ] [ <CommonParameters>] Parameter Set: Name New-HpcNodeTemplate [-Name] <String> -ImageName <String> [-AdminCredential <PSCredential> ] [-ConfirmPassword] [-Description <String> ] [-Multicast] [-ProductKey <String> ] [-Scheduler <String> ] [-Type {<BrokerNode> | <ComputeNode> | <WorkstationNode>} ] [-UpdateCategory <UpdateCategory> ] [-UpdateName <String[]> ] [-WimFileName <String> ] [ <CommonParameters>] |
Detailed Description
Creates a new node template and optionally associates an operating system image with the node template.
Parameters
-AdminCredential<PSCredential>
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
autogenerated Administrator credentials |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Description<String>
Specifies a description to use for the node template.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
no default |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Image<HpcImage>
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.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
no default |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-ImageName<String>
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.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
no default |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Multicast
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
not applicable |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies the name to use for the new node template. The maximum length of the name is 250 characters.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
no default |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProductKey<String>
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
no default |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Scheduler<String>
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>
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
%CCP_SCHEDULER% |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Type<InstallHpcType>
Specifies the type of node to which the node template should apply.
This parameter is supported only for Windows HPC Server 2008 R2.
The acceptable values for this parameter are:
BrokerNode |
Node template for a WCF broker node |
ComputeNode |
Node template for a compute node |
WorkstationNode |
Node template for a workstation node |
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
ComputeNode |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-UpdateCategory<UpdateCategory>
Specifies the category of updates to apply when you update or deploy a node that is associated with the node template. The valid values are All, Critical, and None. Specify All to apply all updates, Critical to apply only critical updates, or None to not apply updates.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
None |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-UpdateName<String[]>
Specifies a list 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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
no default |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WimFileName<String>
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
no default |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ConfirmPassword
Specifies whether to prompt the user for the administrator password that you want to use 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 is supported only for Windows HPC Server 2008 R2.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
$false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- An HpcImage object.
Outputs
The output type is the type of the objects that the cmdlet emits.
- An HpcNodeTemplate object.
Notes
-
You must be a cluster administrator to run this cmdlet successfully.
Examples
EXAMPLE 1
Creates a new node template for broker nodes named MyNodeTemplate.
![]() |
|
---|---|
New-HpcNodeTemplate -Name MyNodeTemplate -Type BrokerNode |
EXAMPLE 2
Creates a new node template that is named TestNodeTemplate and has a description of "Template for testing."
![]() |
|
---|---|
New-HpcNodeTemplate -Name TestNodeTemplate -Description "Template for testing." |
EXAMPLE 3
Creates a new 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.
![]() |
|
---|---|
New-HpcNodeTemplate -Name NodeTemplate1 -ImageName MyImage -Multicast -ProductKey 12345-67890-ABCDE-FGHIJ-KLMNO |
EXAMPLE 4
Creates a new 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.
![]() |
|
---|---|
New-HpcNodeTemplate -Name NodeTemplate2 -ImageName MyImage -WimFileName MyImages.wim -UpdateCategory Critical |