never-displayed
View discussion in a popup
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