# Enable TPM2.0 on a Hyper-V VM

For Windows 11 to work in a Hyper-V VM you need to ensure your host system processor is supported and that TPM 2.0 is available.

You have to 'enable' VM-TPM (a pass-thru support option) on the VM for it to detect and use TPM.

To do this, on your host machine simply  [create a VM Key Protector](https://docs.microsoft.com/en-us/powershell/module/hyper-v/set-vmkeyprotector?view=windowsserver2019-ps#example-2--set-a-key-protector-for-a-virtual-machine-by-using-its-name) :

```
Set-VMKeyProtector -VMName "<your VM name>" -NewLocalKeyProtector
``` 

Then  [enable VMTPM](https://docs.microsoft.com/en-us/powershell/module/hyper-v/enable-vmtpm?view=windowsserver2019-ps#example-1--enable-tpm-on-a-virtual-machine) :

```
 Enable-VMTPM -VMname  "<your VM name>"
``` 



%[https://youtu.be/lOQUjvtIRoE]





