Set-SCServiceTemplate

Configures the properties of a service template.

Description

The Set-SCServiceTemplate cmdlet configures the properties of a service template.

For more information about service templates, type: "Get-Help New-SCServiceTemplate -detailed".

For more information about Set-SCServiceTemplate, type: "Get-Help Set-SCServiceTemplate -online".

Parameters

ServiceTemplate

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

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified 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. 

Name

Required? false
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

Owner

Required? false
Accept Pipeline Input? false
Position? named
Specifies the owner of a VMM object in the form of a valid domain user account.

Example format: -Owner "Contoso\ReneeLo"
Example format: -Owner "ReneeLo@Contoso"

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.

Published

Required? false
Accept Pipeline Input? false
Position? named
Indicates whether a service template should be published.

Release

Required? false
Accept Pipeline Input? false
Position? named
Specifies a string that describes the release of a library resource. VMM automatically creates a release value for every resource imported into the library. After the resource has been imported, the string can be customized.

RunAsynchronously

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

ServicePriority

Required? false
Accept Pipeline Input? false
Position? named
Specifies the priority for a service. Valid values are: Normal, Low, High. Default value: Normal.

UseAsDefaultRelease

Required? false
Accept Pipeline Input? false
Position? named
Specifies that this release is used as the default release for the service template.

UserRole

Required? false
Accept Pipeline Input? false
Position? named
Specifies a user role object.

Examples

1: Set the priority for a service template.
PS C:\> $SvcTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> Set-SCServiceTemplate -ServiceTemplate $SvcTemplate -ServicePriority High
The first command gets the service template object named ServiceTemplate01 and stores the object in the $SvcTemplate variable.

The second command sets the priority for the service template object stored in $SvcTemplate to High.

See Also