Gotcha, misread that. What is the error you get on the new-harddisk?
Try passing just the variable with out the quotes and curly braces {" "}
New-HardDisk -VM $vmname -DiskPath $HDDfile.Filename
Gotcha, misread that. What is the error you get on the new-harddisk?
Try passing just the variable with out the quotes and curly braces {" "}
New-HardDisk -VM $vmname -DiskPath $HDDfile.Filename