PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
Add vTPM using New-Hvpool and json file
Describe the bug
I exported a desktop pool properties in a json file then edited the AddVirtualTPM property from false to true. However, when running New-hvpool with -spec parameter on the newly edited json file, the created desktop pool doesn't have the TPM option enabled. It looks like the addVirtualTPM to true is not taken into account in the json file.
Reproduction steps
- Export a desktop pool properties in a json file
- Edit the json file to add vtpm with AddVirtualTPM to true
- Create the pool with the New-Hvpool -Scpec "jsonfile" command
Expected behavior
Of course, the created pool should have the TPM option enabled. This is not the case.
Additional context
No response