Administrator mode. It is recommended that a batch file (*.bat) be created with these commands and run, rather than typing them in individually.
NOTE: The commands assume that the HP_RECOVERY partition is drive (E:). If it is different, replace E: with the correct drive letter.
BCDEDIT.EXE -store E:\Boot\BCD -create {ramdiskoptions} -d "Ramdisk Options" BCDEDIT.EXE -store E:\Boot\BCD -set {ramdiskoptions} ramdisksdidevice partition=E: BCDEDIT.EXE -store E:\Boot\BCD -set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
BCDEDIT.EXE -store E:\Boot\BCD -create {572bcd55-ffa7-11d9-aae0-0007e994107d} -d "HP Recovery Environment" -application OSLOADER
BCDEDIT.EXE -store E:\Boot\BCD -set {572bcd55-ffa7-11d9-aae0-0007e994107d} device ramdisk=[E:]\Recovery\WindowsRE\winre.wim,{ramdiskoptions}
BCDEDIT.EXE -store E:\Boot\BCD -set {572bcd55-ffa7-11d9-aae0-0007e994107d} path \windows\system32\boot\winload.exe
BCDEDIT.EXE -store E:\Boot\BCD -set {572bcd55-ffa7-11d9-aae0-0007e994107d} osdevice ramdisk=[E:]\Recovery\WindowsRE\winre.wim,{ramdiskoptions}
BCDEDIT.EXE -store E:\Boot\BCD -set {572bcd55-ffa7-11d9-aae0-0007e994107d} systemroot \windows
BCDEDIT.EXE -store E:\Boot\BCD -set {572bcd55-ffa7-11d9-aae0-0007e994107d} winpe yes
BCDEDIT.EXE -store E:\Boot\BCD -set {572bcd55-ffa7-11d9-aae0-0007e994107d} detecthal yes
BCDEDIT.EXE -store E:\Boot\BCD -set {572bcd55-ffa7-11d9-aae0-0007e994107d} nx optin
BCDEDIT.EXE -store E:\Boot\BCD -set {572bcd55-ffa7-11d9-aae0-0007e994107d} custom: 46000010 yes
BCDEDIT.EXE -store E:\Boot\BCD -create {bootmgr} /d "Windows Boot Manager" BCDEDIT.EXE -store E:\Boot\BCD -set {bootmgr} device boot BCDEDIT.EXE -store E:\Boot\BCD -set {bootmgr} displayorder {default}
BCDEDIT.EXE -store E:\Boot\BCD -set {bootmgr} default {572bcd55-ffa7-11d9- aae0-0007e994107d}
21.After the batch file is created, right-click the file in Windows Explorer, and then select Run as Administrator in order to execute the batch file.
22.Restart the computer.