PowerCLI Reference

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

NameTypeDescriptionRequired?Pipeline InputDefault Value
IdString[]Specifies the IDs of the VTpm device that you want to retrieve.trueFalse
ServerVIServer[]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.falseFalse
VMVirtualMachine[]Specifies the virtual machines from which you want to retrieve the virtual tpm device.trueTrue (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.