Get-VMFirmware
Get-VMFirmware
Gets the firmware configuration of a virtual machine.
Syntax
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>]
Detaillierte Beschreibung
The Get-VMFirmware cmdlet gets the firmware configuration of a virtual machine. Note: This cmdlet is supported only on Generation 2 virtual machines.
Parameter
-ComputerName<String[]>
Specifies an array of Hyper-V hosts. The cmdlet gets the virtual machine firmware from the hosts you specify.
Aliasse |
Keiner |
Erforderlich? |
false |
Position? |
named |
Standardwert |
. |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
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.
Aliasse |
Keiner |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
Keiner |
Pipelineeingaben akzeptieren? |
True (ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-VMName<String[]>
Specifies an array of names of virtual machines. The cmdlet gets the firmware configuration for the virtual machines you specify.
Aliasse |
Keiner |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
Keiner |
Pipelineeingaben akzeptieren? |
True (ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-VMSnapshot<VMSnapshot>
Specifies the virtual machine snapshot to be used with the VM when retrieving the firmware configuration.
Aliasse |
Keiner |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
Keiner |
Pipelineeingaben akzeptieren? |
True (ByValue) |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Eingaben
Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
- Microsoft.HyperV.PowerShell.VMFirmware
Hinweise
- Note: This cmdlet is supported only on Generation 2 virtual machines.
Beispiele
Example 1
This example returns a virtual machine firmware object for the virtual machine “Test VM”.
PS C:\> Get-VMFirmware "Test VM"