The virtual machine doesnt need 'Virtual Machines' in its path, this is created when importing.
This commit is contained in:
parent
c075c026be
commit
e6093dd709
|
@ -27,7 +27,7 @@ $VmProperties = @{
|
||||||
Path = $vm_config_file
|
Path = $vm_config_file
|
||||||
SnapshotFilePath = Join-Path $data_path 'Snapshots'
|
SnapshotFilePath = Join-Path $data_path 'Snapshots'
|
||||||
VhdDestinationPath = Join-Path $data_path 'Virtual Hard Disks'
|
VhdDestinationPath = Join-Path $data_path 'Virtual Hard Disks'
|
||||||
VirtualMachinePath = Join-Path $data_path 'Virtual Machines'
|
VirtualMachinePath = $data_path
|
||||||
}
|
}
|
||||||
|
|
||||||
$vmConfig = (Compare-VM -Copy -GenerateNewID @VmProperties)
|
$vmConfig = (Compare-VM -Copy -GenerateNewID @VmProperties)
|
||||||
|
|
Loading…
Reference in New Issue