Set-SCServiceTemplate

Set-SCServiceTemplate

Configures the properties of a service template.

Syntax

Parameter Set: Default
Set-SCServiceTemplate [-ServiceTemplate] <ServiceTemplate> [-Description <String> ] [-JobVariable <String> ] [-Name <String> ] [-Owner <String> ] [-PROTipID <Guid]> ] [-Published <Boolean> ] [-Release <String> ] [-RunAsynchronously] [-ServicePriority <ServicePriority> {Normal | Low | High} ] [-UseAsDefaultRelease <Boolean]> ] [-UserRole <UserRole> ] [ <CommonParameters>]

Detailed Description

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

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

Parameters

-Description<String>

States a description for the specified object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobVariable<String>

Specifies that job progress is tracked and stored in the variable named by this parameter.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a VMM object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Owner<String>

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"

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PROTipID<Guid]>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Published<Boolean>

Indicates whether a service template should be published.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Release<String>

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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServicePriority<ServicePriority>

Specifies the priority for a service. Valid values are:

-- Normal
-- Low
-- High

The default value is Normal.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServiceTemplate<ServiceTemplate>

Specifies a service template object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-UseAsDefaultRelease<Boolean]>

Specifies that this release is used as the default release for the service template.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-UserRole<UserRole>

Specifies a user role object.

Aliases

none

Required?

false

Position?

named

Default Value

none

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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • ServiceTemplate

Examples

Example 1: Set the priority for a service template

The first command gets the service template object named ServiceTemplate01, and then stores the object in the $SvcTemplate variable.

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

PS C:\> $SvcTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> Set-SCServiceTemplate -ServiceTemplate $SvcTemplate -ServicePriority High

Get-SCServiceTemplate

New-SCServiceTemplate

Read-SCServiceTemplate

Remove-SCServiceTemplate

Resolve-SCServiceTemplate

Test-SCServiceTemplate