New-SCVirtualMachine change name of hard disk from template

This topic contains 0 replies, has 1 voice, and was last updated by  Peter Barrett 3 months, 3 weeks ago.

  • Author
  • #92653

    Peter Barrett


    I am using the New-SCVirtualMachine cmdlet to create a virtual machine from a template, which is working well. The only issue I have is that the name of the hard disk in the template is generic (_template_2016_disk_1.vhdx) and when I create the VM the name of the virtual hard disk is the same. I would like the name to be more relevant, such as servername_disk_1.vhdx.

    Is there any way of doing this?


You must be logged in to reply to this topic.