Get-VTpm

This cmdlet retrieves the virtual TPM (vTPM) devices available on the given virtual machines. This cmdlet returns vTPM devices that correspond to the filter criteria specified by the provided parameters.

Syntax

-VM  <VirtualMachine[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VM
VirtualMachine[] named
  • wildcards
  • pipeline
  • Specifies the virtual machines from which you want to retrieve the vTPM device.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    -Id  <String[]>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Specifies the IDs of the vTPM device that you want to retrieve.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.Security.Types.V1.Entity.VTpm

    Examples


    Example 1

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

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

    Related Commands

    Feedback

    Was this page helpful?