Score:0

set-vm(guest customisation) : The operation for the entity "x" failed with the following message: "A specified parameter was not correct: hostname

in flag

(powercli newbie here)

I am using guest customisationscript that needs hostname when creating vm. Using that in powercli fails

$New_vm=get-vm "ies-jtmpl-t005"
$OSSpecs = Get-OSCustomizationSpec -Name 'jayan_debug'
Set-VM -VM $New_vm -OSCustomizationSpec $OSSpecs -Confirm:$false

The jayan_debug is set to take hostname when creating vm

The operation for the entity "ies-jtmpl-t005" failed with the following message: "A 
specified parameter was not correct: hostname"

How do I pass hostname

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.