Remove-SCApplicationHostTemplate

Removes an application host template from a service template.

Description

The Remove-SCApplicationHostTemplate removes an application host template from a service template.

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

Parameters

ApplicationHostTemplate

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies an application host template object.

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 an application host template from a service template.
PS C:\> $ServiceTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> $AppHostTemplate = Get-SCApplicationHostTemplate -ServiceTemplate $ServiceTemplate
PS C:\> Remove-SCApplicationHostTemplate -ApplicationHostTemplate $AppHostTemplate
The first command gets the service template object named ServiceTemplate01 and stores the object in the $ServiceTemplate variable.

The second command gets the application host template object for the service template in $ServiceTemplate and stores the object in the $AppHostTemplate variable.

The last command removes the application host template in $AppHostTemplate.

See Also