Get-VMTPM
Get-VMTPM
Gets the TPM configuration for virtual machines.
Syntax
Parameter Set: VMName
Get-VMTPM [-VMName] <String[]> [-CimSession <CimSession[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential[]> ] [ <CommonParameters>]
Parameter Set: VMObject
Get-VMTPM [-VM] <VirtualMachine[]> [ <CommonParameters>]
Parameter Set: VMSnapshot
Get-VMTPM [-VMSnapshot] <VMSnapshot> [ <CommonParameters>]
Detaillierte Beschreibung
The Get-VMTPM cmdlet gets the configuration of the virtual Trusted Platform Module (TPM) for virtual machines.
Parameter
-CimSession<CimSession[]>
Das Cmdlet wird in einer Remotesitzung oder auf einem Remotecomputer ausgeführt. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, wie z. B. die Ausgabe eines New-CimSession oder Get-CimSession-Cmdlets. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ComputerName<String[]>
Specifies one or more Hyper-V hosts that run this cmdlet. NetBIOS names, IP addresses, and fully qualified domain names are allowable. The default is the local computer. Use localhost or a dot (.) to specify the local computer explicitly.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Credential<PSCredential[]>
Specifies one or more user accounts that have permission to perform this action. The default is the current user.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-VM<VirtualMachine[]>
Specifies an array of virtual machine objects for which this cmdlet gets the TPM settings. To obtain a virtual machine object, use the Get-VM cmdlet.
Aliase |
none |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-VMName<String[]>
Specifies an array of virtual machine names for which this cmdlet gets the TPM settings.
Aliase |
none |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-VMSnapshot<VMSnapshot>
Specifies a virtual machine checkpoint. This cmdlet gets the TPM configuration for the checkpoint of a virtual machine that this parameter specifies.
Checkpoint replaces the previous term, snapshot.
Aliase |
VMCheckpoint |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue) |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -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 Sie per Piping an das Cmdlet übergeben können.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
- Microsoft.HyperV.Powershell.VMTPM
Beispiele
Example 1: Get a TPM by virtual machine name
This command gets the virtual TPM object for the virtual machine named VM01.
PS C:\> Get-VMTPM -VMName "VM01"