Try copying the VMDK operating system of a virtual machine

I m trying to copy the OS vmdk to a VM with 2 also with the cmd - left hard drive copy.

When Itry to the following syntax:

copy-hard drive - HDD "[RZ1_FG34_Infrastruktur_B] uxms0005/uxms0005.vmdk"-DestinationPath "Klon/uxms0005klon.vmdk [RZ1_FG34_Infrastruktur_B] '.

I get an error:

CategoryInfo: InvalidArgument: (:)) [copy-hard drive], ParameterBindingException)

Thank you.

Hi, Lutz, Yes, you must use the get-hard way it returns only one of the discs you want: Get - hard - drive vSphere PowerCLI cmdlets reference

Like this for example:

Get - VM uxms0005 |  Get-Harddisk? | { $_. Filename-match "uxms0005.vmdk"}

It must return a drive and you can run in your hard drive copy.

Tim

Tags: VMware

Similar Questions

Maybe you are looking for