New-SCVirtualMachine change name of hard disk from template

Welcome Forums General PowerShell Q&A New-SCVirtualMachine change name of hard disk from template

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

  • Author
    Posts
  • #92653

    Participant
    Points: 1
    Rank: Member

    Hi,

    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?

    Thanks
    Peter

The topic ‘New-SCVirtualMachine change name of hard disk from template’ is closed to new replies.