Hello,
Looking for some help with copying a vmdk from vm to vm. I've tried using powercli and hit a wall with the Copy-HardDisk command.
Esxi - 6.5
Get-HardDisk -VM VM1 |
where{$_.FileName -match "VM1/VM1_2"} |
Copy-HardDisk -DestinationPath "[LUN1] VM2/VM1_2.vmdk" -DestinationStorageFormat Thin
Error:
Get-HardDisk : The term 'Get-HardDisk' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ Get-HardDisk -VM VM1 |
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-HardDisk:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException