Get-VMFirmware

Get-VMFirmware

Gets the firmware configuration of a virtual machine.

Sintaxis

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>]

Descripción detallada

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

Parámetros

-ComputerName<String[]>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

.

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-VMName<String[]>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-VMSnapshot<VMSnapshot>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.HyperV.PowerShell.VMFirmware

Notas

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

Ejemplos

Example 1

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

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

Temas relacionados

Set-VMFirmware