This forum has been very helpful!
My latest problem is trying to create a new hard disk for use in a VM. I get the dreaded"A specified parameter was not correct. " message when I try this:
New-HardDisk -VM (Get-VM -Name "MyVm") -CapacityKB 10 -Datastore (get-datastore "myserver:storage1") -DiskType "Flat" -Persistence "Persistent" -Debug
Or the more minimal:
New-HardDisk -VM (Get-VM -Name "MyVm") -CapacityKB 10
Thanks in advance,
Steve
quick comment: 10 KB hard drive? could it be so simple as there is a minimum number and you're under it?
Hal Rottenberg
Co-Host, PowerScripting Podcast (http://powerscripting.net)
quick comment: 10 KB hard drive? could it be so simple as there is a minimum number and you're under it?
Hal Rottenberg
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Yes that was the problem how embarrassing