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

 

Advertisements

Leave a Reply

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

WordPress.com Logo

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

Google photo

You are commenting using your Google 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