Syntax
New-VTpm [-VM] <VirtualMachine> [-Confirm] [-RunAsync] [-Server <VIServer[]>] [-WhatIf] [<CommonParameters>]Related Commands
Get-VTpmDetailed Description
This cmdlet creates a new VTpm device on the specified virtual machine.Parameters
Return Type
VMware.VimAutomation.Security.Types.V1.Entity.VTpmNotes
Works only on vCenter Server system versions 6.7 or later and ESX versions 6.7 or later. If the given virtual machine wasn't encrypted with its VM Home, then the default kmscluster is required to be place in vCenter Server; As a result of the cmdlet, the VM Home of the given virtual machine will be encrypted.Examples
-------------------------- Example 1 --------------------------
Get-VM MyVM | New-VTpm
Adds a new VTpm device to the virtual machine named "MyVM".