Trying to use powershell to remove a 2nd hard disk and seem to be having trouble
Get-HardDisk -VM $VMname | Remove-HardDisk -HardDisk "Hard Disk 2" -DeletePermanently
If i run without the "-HardDisk "Hard Disk 2" -DeletePermanently" it interactivley allows me iterate and remove I would however like to specify the correct disk.
Anyone know where I'm going wrong with the syntax?
Thanks in advance