windows虚拟机修复开机启动项

启动一台新机器,把之前的虚拟机系统镜像当做数据盘挂到这台新机器上,进入系统后会看到C、D、E三个盘:
C盘为救援主机的C盘,
D盘为原始虚拟机系统分区,
E盘为原始虚拟机C盘

打开CMD,执行:

chkdsk E: /F

bcdedit /store d:\boot\bcd /set {bootmgr} device partition=E:

bcdedit /store d:\boot\bcd /set {default} device partition=E:

bcdedit /store d:\boot\bcd /set {default} osdevice partition=E: