#bcdedit備分
bcdedit /export c:\boot.bak
bcdedit /import c:\boot.bak
#error 改壞
#path
bcdedit /set path \win
#recoverysequnce
bcdedit /set recoveryenable no
diskpart
list disk #尋找內接硬碟
sel disk 0
list vol #find 100m fat32
sel vol 2
assign letter=v #設定磁區代碼
exit
v:
cd efi \Microsoft\Boot
有BCD檔案
c:\format v: /fs:fat32 #選Y
#rebuild boot EFI
c:\bceboot c:\windows /s v: /f UEFI
bcdedit #查看
reagentc /info #顯示 windows RE: Disable
#重建 windows RE
Dism /online /Cleanup-Image /RestoreHealth
reagentc /enable
reagentc /info