Get-SCPendingServiceSetting

Applies To: System Center 2012 - Virtual Machine Manager

Get-SCPendingServiceSetting

Gets the pending service settings for a service that is in a pending service state.

Syntax

Parameter Set: Default
Get-SCPendingServiceSetting [-Service] <Service> [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed Description

The Get-SCPendingServiceSetting cmdlet gets the pending service settings for a service that is in a pending service state.

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

Parameters

-Name<String>

Specifies the name of a VMM object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Service<Service>

Specifies a VMM service object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

1. Retrieve all pending service settings from a service in a pending service state

The first command gets the service object named Service01 and stores the object in the $Service variable.

The second command gets the pending service settings for Service01 and displays them for the user.

PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> Get-SCPendingServiceSetting -Service $Service

Get-SCService