Get-VMFirmware

Gets the firmware configuration of a virtual machine.

Syntax

Get-VMFirmware
   [-ComputerName <String[]>]
   [-VMName] <String[]>
   [<CommonParameters>]
Get-VMFirmware
   [-VMSnapshot] <VMSnapshot>
   [<CommonParameters>]
Get-VMFirmware
   [-VM] <VirtualMachine[]>
   [<CommonParameters>]

Description

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

Examples

Example 1

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

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

Parameters

-ComputerName

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

Type:String[]
Position:Named
Default value:.
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VM

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.

Type:VirtualMachine[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMName

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

Type:String[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMSnapshot

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

Type:VMSnapshot
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Outputs

Microsoft.HyperV.PowerShell.VMFirmware

Notes

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