Test-SCCapabilityProfile

Test-SCCapabilityProfile

Validates the settings of a capability profile against a virtual machine, hardware profile, or virtual machine template.

構文

Parameter Set: HardwareProfile
Test-SCCapabilityProfile -HardwareProfile <HardwareProfile> [-CapabilityProfile <CapabilityProfile> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: Template
Test-SCCapabilityProfile -VMTemplate <Template> [-CapabilityProfile <CapabilityProfile> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: VM
Test-SCCapabilityProfile -VM <VM> [-CapabilityProfile <CapabilityProfile> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

The Test-SCCapabilityProfile cmdlet validates the settings of a capability profile against the virtual machine, hardware profile, or virtual machine template to which the profile is attached.

パラメーター

-CapabilityProfile<CapabilityProfile>

Specifies a capability profile object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-HardwareProfile<HardwareProfile>

Specifies a hardware profile object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

True (ByValue)

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

false

-VM<VM>

Specifies a virtual machine object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

True (ByValue)

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

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

True (ByValue)

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

false

-VMTemplate<Template>

Specifies a VMM template object used to create virtual machines.

エイリアス

Template

必須?

true

位置は?

named

既定値

none

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

True (ByValue)

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Validate a capability profile for a virtual machine in a private cloud

The first command gets the virtual machine object named CloudVM01, and then stores the object in the $VM variable.

The second command tests the settings of the capability profile attached to the virtual machine stored in $VM, and then stores the results in the $ProfileTest variable.

The last command displays any validation errors that occurred during testing.

PS C:\> $VM = Get-SCVirtualMachine -Name "CloudVM01"
PS C:\> $ProfileTest = Test-SCCapabilityProfile -VM $VM
PS C:\> $ProfileTest.ValidationErrors

関連トピック

Get-SCCapabilityProfile

New-SCCapabilityProfile

Remove-SCCapabilityProfile

Set-SCCapabilityProfile

Get-SCVirtualMachine