Get-VMFirmware

Get-VMFirmware

Gets the firmware configuration of a virtual machine.

语法

Parameter Set: VMName
Get-VMFirmware [-VMName] <String[]> [-ComputerName <String[]> ] [ <CommonParameters>]

Parameter Set: VMObject
Get-VMFirmware [-VM] <VirtualMachine[]> [ <CommonParameters>]

Parameter Set: VMSnapshot
Get-VMFirmware [-VMSnapshot] <VMSnapshot> [ <CommonParameters>]

详细说明

The Get-VMFirmware cmdlet gets the firmware configuration of a virtual machine. Note: This cmdlet is supported only on Generation 2 virtual machines.

参数

-ComputerName<String[]>

Specifies an array of Hyper-V hosts. The cmdlet gets the virtual machine firmware from the hosts you specify.

别名

是否为必需?

false

位置?

named

默认值

.

是否接受管道输入?

false

是否接受通配符?

false

-VM<VirtualMachine[]>

Specifies an array of virtual machine objects. The cmdlet gets the firmware configuration for the virtual machines you specify. To obtain a virtual machine object, use the Get-VM cmdlet.

别名

是否为必需?

true

位置?

1

默认值

是否接受管道输入?

True (ByValue)

是否接受通配符?

false

-VMName<String[]>

Specifies an array of names of virtual machines. The cmdlet gets the firmware configuration for the virtual machines you specify.

别名

是否为必需?

true

位置?

1

默认值

是否接受管道输入?

True (ByValue)

是否接受通配符?

false

-VMSnapshot<VMSnapshot>

Specifies the virtual machine snapshot to be used with the VM when retrieving the firmware configuration.

别名

是否为必需?

true

位置?

1

默认值

是否接受管道输入?

True (ByValue)

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

输出

输出类型是 cmdlet 所发出对象的类型。

  • Microsoft.HyperV.PowerShell.VMFirmware

注意

  • Note: This cmdlet is supported only on Generation 2 virtual machines.

示例

Example 1

This example returns a virtual machine firmware object for the virtual machine “Test VM”.

PS C:\> Get-VMFirmware "Test VM"

相关主题

Set-VMFirmware