Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

What do you have in $vm?
A String with the name of the VM?
Try doing

Get-VM -Name $vm | New-HardDisk -CapacityGB 10


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference