Automation

 View Only
  • 1.  Add vTPM using New-Hvpool and json file

    Posted 18 days ago

    Hi,

    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. Is there a way to add vTPM to a pool that is created with the new-hvpool command ?

    Thanks



  • 2.  RE: Add vTPM using New-Hvpool and json file

    Posted 18 days ago

    Have you tried Wouter's function from [REST]Pushing a new image Horizon 8 2206 style – Retouw.nl



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------



  • 3.  RE: Add vTPM using New-Hvpool and json file

    Posted 17 days ago

    Can this be used with the .json file I exported in powershell ?




  • 4.  RE: Add vTPM using New-Hvpool and json file

    Posted 17 days ago

    You can read the file and pass the values on the parameters of the function.



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------



  • 5.  RE: Add vTPM using New-Hvpool and json file

    Posted 16 days ago

    You mean read the .json file data with Get-Content, somehow extract the all the values that are needed, then pass them as parameters in the function ?

    But for this, API REST usage is still required ?




  • 6.  RE: Add vTPM using New-Hvpool and json file

    Posted 16 days ago

    Yes and yes.



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------