Read-SCServiceTemplate

Refreshes the properties of a service template and displays the updates in the VMM console.

Syntax

Read-SCServiceTemplate [-ServiceTemplate] <ServiceTemplate> [-JobVariable <String>] [-PROTipID <Guid>]
 [-RunAsynchronously] [<CommonParameters>]

Description

The Read-SCServiceTemplate cmdlet refreshes the properties of a service template and reflects the updates in the Virtual Machine Manager (VMM) console.

Examples

Example 1: Refresh a specified service template object

PS C:\> $SvcTemplate = Get-SCServiceTemplate -VMMServer "VMMServer01.Contoso.com" -Name "ServiceTemplate01"
PS C:\> Read-SCServiceTemplate -ServiceTemplate $SvcTemplate

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

The second command refreshes the properties of the service template stored in $SvcTemplate.

Parameters

-JobVariable

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

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
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.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServiceTemplate

Specifies a service template object.

Type:ServiceTemplate
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

ServiceTemplate

This cmdlet returns a **ServiceTemplate** object.