windows kernel modification repair (recovery boot loop)

DEL %windir%\system32\drivers\oem-drv64.sys
DEL %windir%\system32\xNtKrnl.exe
DEL %windir%\system32\xOsLoad.exe

attrib -r -h -s \boot\bcd

ren \boot\bcd bcd.old

 

DEL «%windir%\System32\ru-RU\xOsLoad.exe.mui»
DEL «%windir%\System32\en-US\xOsLoad.exe.mui»
%windir%\System32\BCDEDIT.exe /set {current} path \Windows\system32\winload.exe
%windir%\System32\BCDEDIT.exe /deletevalue {current} kernel
%windir%\System32\BCDEDIT.exe /deletevalue {current} nointegritychecks
%windir%\System32\BCDEDIT.exe /deletevalue {current} custom:26000027
REG DELETE HKLM\SYSTEM\CurrentControlSet\services\oem-drv64 /va /f