Remove-SCComputerTierTemplate

Removes a computer tier template from a service template.

Description

The Remove-SCComputerTierTemplate cmdlet removes a computer tier template from a service template.

For more information about Remove-SCComputerTierTemplate, type: "Get-Help Remove-SCComputerTierTemplate -online".

Parameters

ComputerTierTemplate

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a computer tier template object.

Confirm

Required? false
Accept Pipeline Input? false
Position? named
Prompts for confirmation before running the command.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

Examples

1: Remove a computer tier template from a service template.
PS C:\> $ServiceTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> $TierTemplate = Get-SCComputerTierTemplate -ServiceTemplate $ServiceTemplate
PS C:\> Remove-SCComputerTierTemplate -ComputerTierTemplate $TierTemplate -Confirm
The first command gets the service template object named ServiceTemplate01 and stores the object in the $ServiceTemplate variable.

The second command gets the computer tier template for the service template stored in $ServiceTemplate.

The last command removes the computer tier template stored in $TierTemplate after prompting the user for confirmation.

See Also