Set-SCService

Modifies a VMM service instance.

Description

The Set-SCService cmdlet modifies a System Center Virtual Machine Manager (VMM) service instance.

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

Parameters

Service

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

CommitPendingServiceTemplate

Required? false
Accept Pipeline Input? false
Position? named
Applies the pending service template to the service instance.

CostCenter

Required? false
Accept Pipeline Input? false
Position? named
Specifies the cost center for a virtual machine so that you can collect data about the allocation of virtual machines (or resources allocated to virtual machines) to make use of in your billing system.

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.

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.

UserRole

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

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

Service

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

CostCenter

Required? false
Accept Pipeline Input? false
Position? named
Specifies the cost center for a virtual machine so that you can collect data about the allocation of virtual machines (or resources allocated to virtual machines) to make use of in your billing system.

Description

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

DismissPendingServiceTemplate

Required? false
Accept Pipeline Input? false
Position? named
Removes a pending service template from a service instance.

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.

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.

UserRole

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

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

Service

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

CostCenter

Required? false
Accept Pipeline Input? false
Position? named
Specifies the cost center for a virtual machine so that you can collect data about the allocation of virtual machines (or resources allocated to virtual machines) to make use of in your billing system.

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"

PendingServiceTemplate

Required? false
Accept Pipeline Input? false
Position? named
Specifies a service template object that has been updated but not applied to the service instance.

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. 

ServicePriority

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

UserRole

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

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

Examples

1: Change the description and priority of a service.
PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> Set-SCService -Service $Service -Description "Contoso Custom Service" -ServicePriority Normal
The first command command gets the service object named Service01 and stores the object in the $Service variable.

The second command updates the description and priority for the service stored in $Service.
2. Dismiss a pending service template
PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> Set-SCService -Service $Service -DismissPendingServiceTemplate
The first command gets the service object named Service01 and stores the object in the $Service variable.

The second command dismisses the pending servicing operation

See Also