Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Performs placement on a service configuration.

Syntax

Update-SCServiceConfiguration -ServiceConfiguration <ServiceConfiguration> [-JobVariable <String>] [-PROTipID <Guid>] [-RunAsynchronously <SwitchParameter>] [-VMMServer <String ServerConnection>] [<CommonParameters>]

Detailed Description

The Update-SCServiceConfiguration cmdlet performs placement on a service configuration object. During placement, the suitability of hosts is determined and configuration settings for the virtual machines are configured. For more information about Update-SCServiceConfiguration, type: "Get-Help Update-SCServiceConfiguration -online".

Parameters

-ServiceConfiguration [<>]

Specifies a service configuration object.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   true (ByValue)
Accept wildcard characters?   false

-JobVariable [<>]

Specifies that job progress is tracked and stored in the variable named by this parameter.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-PROTipID [<>]

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-RunAsynchronously [<>]

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-VMMServer [<>]

Specifies a VMM server object.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

Return Type

ServiceConfiguration

Notes

Examples

1: Run placement and update a service configuration.

PS> PS C:\> $SvcConfig = Get-SCServiceConfiguration -Name "Service01" PS C:\> Update-SCServiceConfiguration -ServiceConfiguration $SvcConfig

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

The second command updates and runs placement on service configuration Service01.