Resolve-SCServiceTemplate
Validates a service template and updates the global settings for the service template.
Syntax
Default (Default)
Resolve-SCServiceTemplate
[-ServiceTemplate] <ServiceTemplate>
[-Update]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
The Resolve-SCServiceTemplate cmdlet validates a service template and updates the global settings for the service template.
Examples
Example 1: Validate the global settings in a service template
PS C:\> $SvcTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01" | where { $_.Release -eq "Beta" }
PS C:\> Resolve-SCServiceTemplate -ServiceTemplate $SvcTemplate
The first command gets the Beta release of the service template object named ServiceTemplate01 and stores the object in the $SvcTemplate variable.
The second command validates the global settings for the service template in $SvcTemplate and then displays the warnings (if any) for changes to the global settings.
Example 2: Update the global settings in a specific service template
PS C:\> $SvcTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01" | where { $_.Release -eq "Beta" }
PS C:\> Resolve-SCServiceTemplate -ServiceTemplate $SvcTemplate -Update
The first command gets the service template object that named ServiceTemplate01 with a release value of Beta and stores the object in the $SvcTemplate variable.
The second command updates the global settings for the service template stored in $SvcTemplate.
Parameters
-JobVariable
Specifies that job progress is tracked and stored in the variable named by this parameter.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ServiceTemplate
Specifies a service template object.
Parameter properties
Type: | ServiceTemplate |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Update
Updates the settings for an object.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
ServiceTemplate
This cmdlet returns a ServiceTemplate object.