https://github.com/ColiseoSoftware/hypervbackup/releases
Нужен .Net Framework 3.5
SET VM=Debian_15_5 SET IGNORE=E:\VHD\Debian_backup\Debian_backup_disk2.vhdx SET OUTPUT=D:\Backup_Debian C:\Portatable\HyperVBackup.exe -l %VM% -i %IGNORE% -o %OUTPUT% -d --outputformat {0}_{2:yyyy-MM-dd}
Powershell
Install-WindowsFeature Hyper-V-Powershell
get-vm
Определить поколение виртуальной машины
Get-VM
start-vm Имя_Машины
stop-vm Имя_Машины
Export-VM -Name SC3 -Path "D:\Hyper-V\SC3Clone"
Import-VM -Path ′D:\Hyper-V\SC3\Virtual Machines\4e782fc5-8a82-4311-8627-b69ab2e894f5.xml′
Import-VM -Path 'C:\path\2B91FEB3-F1E0-4FFF-B8BE-29CED892A95A.vmcx'
Import-VM -Path 'C:\vm export path\2B91FEB3-F1E0-4FFF-B8BE-29CED892A95A.vmcx' -Copy -VhdDestinationPath 'D:\Virtual Machines\WIN10DOC' -VirtualMachinePath 'D:\Virtual Machines\WIN10DOC'
Get-NetAdapter
get-netadapter -ifindex 4 | rename-netadapter -newname 'LAN_Hyper'
$net = Get-NetAdapter -Name 'Ethernet'
New-VMSwitch -Name "External VM Switch" -AllowManagementOS $True -NetAdapterName $net.Name
Get-VMSwitch