Set-SCServiceSetting

Modifies a service setting.

Description

The Set-SCServiceSetting cmdlet modifies a service setting.

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

Parameters

ServiceSetting

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a service setting object.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

IsEncrypted

Required? false
Accept Pipeline Input? false
Position? named
Indicates that a service setting is encrypted.

IsRequired

Required? false
Accept Pipeline Input? false
Position? named
Indicates that a service setting is mandatory.

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. 

SecureValue

Required? false
Accept Pipeline Input? false
Position? named
Specifies the value for a secure string.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

ServiceSetting

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a service setting object.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

IsEncrypted

Required? false
Accept Pipeline Input? false
Position? named
Indicates that a service setting is encrypted.

IsRequired

Required? false
Accept Pipeline Input? false
Position? named
Indicates that a service setting is mandatory.

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. 

Value

Required? false
Accept Pipeline Input? false
Position? named
Specifies a string used to attribute an object or property.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Examples

1. Make a service setting mandatory.
PS C:\> $Template = Get-SCServiceTemplate -Name "ServiceTemplate01" | where {$_.Release -eq "Beta"}
PS C:\> $ServiceSetting = Get-SCServiceSetting -ServiceTemplate $Template -Name "Setting01"
PS C:\> Set-SCServiceSetting -ServiceSetting $ServiceSetting -IsRequired $True
The first command gets the service template object named ServiceTemplate01 with a release of Beta and stores the object in the $ServiceTemplate variable.

The second command gets the service setting object named Setting01 from ServiceTemplate01 and stores the object in the $ServiceSetting variable.

The last command modifies the service setting so that it is mandatory.

See Also