Get-VMTPM

Get-VMTPM

Gets the TPM configuration for virtual machines.

Sintaxis

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

Descripción detallada

The Get-VMTPM cmdlet gets the configuration of the virtual Trusted Platform Module (TPM) for virtual machines.

Parámetros

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

none

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

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.

Alias

none

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

false

-Credential<PSCredential[]>

Specifies one or more user accounts that have permission to perform this action. The default is the current user.

Alias

none

¿Necesario?

false

¿Posición?

named

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

false

¿Aceptar caracteres comodín?

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.

Alias

none

¿Necesario?

true

¿Posición?

1

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

true(ByValue)

¿Aceptar caracteres comodín?

false

-VMName<String[]>

Specifies an array of virtual machine names for which this cmdlet gets the TPM settings.

Alias

none

¿Necesario?

true

¿Posición?

1

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

true(ByValue)

¿Aceptar caracteres comodín?

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.

Alias

VMCheckpoint

¿Necesario?

true

¿Posición?

1

Valor predeterminado

none

¿Aceptar la entrada de la canalización?

true(ByValue)

¿Aceptar caracteres comodín?

false

<CommonParameters>

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

Entradas

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

Salidas

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

  • Microsoft.HyperV.Powershell.VMTPM

Ejemplos

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" 

Temas relacionados

Add-VMTPM

Set-VMTPM

Get-VM