diff --git a/powershell/hyperv/hyperv.go b/powershell/hyperv/hyperv.go index efd83c684..6a512d1f4 100644 --- a/powershell/hyperv/hyperv.go +++ b/powershell/hyperv/hyperv.go @@ -197,9 +197,9 @@ func CopyExportedVirtualMachine(expPath string, outputPath string, vhdDir string var script = ` param([string]$srcPath, [string]$dstPath, [string]$vhdDirName, [string]$vmDir) -Copy-Item -Path $srcPath/$vhdDirName -Destination $dstPath -recurse -Copy-Item -Path $srcPath/$vmDir -Destination $dstPath -Copy-Item -Path $srcPath/$vmDir/*.xml -Destination $dstPath/$vmDir +Move-Item -Path $srcPath/*.* -Destination $dstPath +Move-Item -Path $srcPath/$vhdDirName -Destination $dstPath +Move-Item -Path $srcPath/$vmDir -Destination $dstPath ` var ps powershell.PowerShellCmd