VMware Cloud Community
stephen_ng
Contributor
Contributor
Jump to solution

Problems with New-HardDisk

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

0 Kudos
1 Solution

Accepted Solutions
halr9000
Commander
Commander
Jump to solution

quick comment: 10 KB hard drive? Smiley Happy 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)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000

View solution in original post

0 Kudos
2 Replies
halr9000
Commander
Commander
Jump to solution

quick comment: 10 KB hard drive? Smiley Happy 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)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
stephen_ng
Contributor
Contributor
Jump to solution

Yes that was the problem how embarrassing Smiley Happy

0 Kudos