- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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