Suspend-SCService

Pauses a VMM service and all virtual machines within the service.

Description

The Suspend-SCService pauses a System Center Virtual Machine Manager (VMM) service and all virtual machines within the service. To resume the service, use the Resume-SCService cmdlet.

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

Parameters

Service

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
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: Suspend a specific service.
PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> Suspend-SCService -Service $Service
The first command gets the service object named Service01 and stores the object in the $Service variable.

The second command suspends the service in $Service, which pauses all of the virtual machines in the service.

See Also