Read-SCService

Refreshes the information for a service.

Description

The Read-SCService cmdlet refreshes the information for a service and reflects the updates in the System Center Virtual Machine Manager (VMM) console.

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

Parameters

Service

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM service 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. 

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. 

VMMServer

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

Examples

1: Refresh a service object.
PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> Read-SCService -Service $Service
The first command gets the service object named Contoso Service Configuration 01 and stores the object in the $Service variable.

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

See Also