Update-SCVMConfiguration

Update-SCVMConfiguration

Updates the properties of a VMM virtual machine configuration object.

構文

Parameter Set: Default
Update-SCVMConfiguration [-VMConfiguration] <BaseVMConfiguration> [-JobVariable <String> ] [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-ValidateOnly <Boolean> ] [-VMName <String> ] [ <CommonParameters>]

詳細説明

The Update-SCVMConfiguration cmdlet updates the properties of a Virtual Machine Manager (VMM) virtual machine configuration object.

パラメーター

-JobVariable<String>

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-OnBehalfOfUser<System.String>

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-OnBehalfOfUserRole<Microsoft.SystemCenter.VirtualMachineManager.UserRole>

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PROTipID<Guid]>

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RunAsynchronously

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ValidateOnly<Boolean>

Indicates that validation of the placement is performed, but placement will not actually be performed.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMConfiguration<BaseVMConfiguration>

Specifies a virtual machine configuration object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-VMName<String>

Specifies the name of a virtual machine to be placed on a physical host server. Use this parameter to verify that another virtual machine with the same name is not already deployed on that host.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • ComputerConfig

  • This command requires a VMM virtual machine configuration object, which can be obtained by using the Get-SCVMConfiguration cmdlet.

Example Example 1: Update an existing virtual machine configuration.

The first command gets the service configuration object named Service01 from the VMM library, and then stores the object in the $ServiceConfig variable.

The second command gets the virtual machine configuration object for the service configuration stored in $ServiceConfig, and then stores the virtual machine configuration object in $VMConfig.

The last command sets the ValidateOnly property to $True for the first configuration object stored in $VMConfig.

PS C:\> $ServiceConfig = Get-SCServiceConfiguration -Name "Service01"
PS C:\> $VMConfig = Get-SCVMConfiguration -ServiceConfiguration $ServiceConfig
PS C:\> Update-SCVMConfiguration -VMConfiguration $VMConfig[0] -ValidateOnly $True

関連トピック

Get-SCVMConfiguration

New-SCVMConfiguration

Remove-SCVMConfiguration

Set-SCVMConfiguration

Get-SCServiceConfiguration