Creating Virtual TPM on Server 2016 via PowerShell

New-HgsGuardian UntrustedGuardian -GenerateCertificates
$owner = Get-HgsGuardian UntrustedGuardian
$kp = New-HgsKeyProtector -Owner $owner -AllowUntrustedRoot
Set-VMKeyProtector -VMName myvm -KeyProtector $kp.RawData
Enable-VMTPM -VMName myvm

Confirm by checking the “TpmEnabled” field is set to True

Get-VMSecurity -VMName myvm

Add virtual TPM in Windows 10 Hyper-V guest with PowerShell



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s