# Get-VTpm

## Synopsis

This cmdlet retrieves the virtual tpm devices available on given virtual machines.

Syntax

Get-VTpm -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]
Get-VTpm [-Server <VIServer[]>] -VM <VirtualMachine[]> [<CommonParameters>]

Related Commands

New-VTpm
Remove-VTpm
Set-VTpm
Get-VTpmCertificate
Get-VTpmCSR

Detailed Description

This cmdlet retrieves the virtual tpm devices available on given virtual machines. The cmdlet returns virtual tpm devices that correspond to the filter citeria specified by the provided paramters.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
Id | String[] | Specifies the IDs of the VTpm device that you want to retrieve. | true | False
Server | VIServer[] | Specifies the connected viserver on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default viservers. For more information about default viservers, see the description of the Connect-VIServer cmdlet. | false | False
VM | VirtualMachine[] | Specifies the virtual machines from which you want to retrieve the virtual tpm device. | true | True (ByValue)

Return Type

Zero or more VTpm objects

Notes

Examples

-------------------------- Example 1 --------------------------

    $vm = Get-VM "MyVM"
    Get-VTpm -VM $vm

Retrieves the VTpm device of the virtual machine named "MyVM".

Copyright © VMware, Inc. All rights reserved.