Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Windows Boot Loader
-------------------
identifier {current}
[B]device partition=C:[/B]
path \WINDOWS\system32\winload.efi
description Windows 10 home x64
locale it-IT
inherit {bootloadersettings}
recoverysequence {4a081ca8-71be-11e6-80cd-eca86b8ec766}
integrityservices Enable
recoveryenabled Yes
isolatedcontext Yes
allowedinmemorysettings 0x15000075
[B]osdevice partition=C:[/B]
systemroot \WINDOWS
resumeobject {5d5a201e-d643-11e4-a71c-9001aae18364}
nx AlwaysOn
bootmenupolicy Legacy
quietboot No
Hi Docfxit. :wave:
By chance, did you restore the system partition only?
Try to run bcdedit on the system partition and check if you get partition=C:;
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=C:
description Windows Boot Manager
displayorder {e5a0c0aa-f937-11e6-9490-ea169993fd88}
timeout 10
Windows Boot Loader
-------------------
identifier {e5a0c0aa-f937-11e6-9490-ea169993fd88}
device partition=C:
path \Windows\system32\winload.exe
description Microsoft Windows
osdevice partition=C:
systemroot \Windows
Startup Repair diagnosis and repair log
---------------------------
Last successful boot time: 2/6/2017 4:59:08 PM (GMT)
Number of repair attempts: 15
Session details
---------------------------
System Disk = \Device\Harddisk1
Windows directory = C:\Windows
AutoChk Run = 0
Number of root causes = 1
Test Performed:
---------------------------
Name: Check for updates
Result: Completed successfully. Error code = 0x0
Time taken = 31 ms
Test Performed:
---------------------------
Name: System disk test
Result: Completed successfully. Error code = 0x0
Time taken = 16 ms
Test Performed:
---------------------------
Name: Disk failure diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Disk metadata test
Result: Completed successfully. Error code = 0x0
Time taken = 15 ms
Test Performed:
---------------------------
Name: Target OS test
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Volume content check
Result: Completed successfully. Error code = 0x0
Time taken = 47 ms
Test Performed:
---------------------------
Name: Boot manager diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: System boot log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Event log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 47 ms
Test Performed:
---------------------------
Name: Internal state check
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Boot status test
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Setup state check
Result: Completed successfully. Error code = 0x0
Time taken = 234 ms
Test Performed:
---------------------------
Name: Registry hives test
Result: Completed successfully. Error code = 0x0
Time taken = 1310 ms
Test Performed:
---------------------------
Name: Windows boot log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Bugcheck analysis
Result: Completed successfully. Error code = 0x0
Time taken = 453 ms
Test Performed:
---------------------------
Name: Access control test
Result: Completed successfully. Error code = 0x0
Time taken = 11668 ms
Test Performed:
---------------------------
Name: File system test (chkdsk)
Result: Completed successfully. Error code = 0x0
Time taken = 16396 ms
Test Performed:
---------------------------
Name: Software installation log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Fallback diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Root cause found:
---------------------------
Unspecified changes to system configuration might have caused the problem.
---------------------------
---------------------------
Session details
---------------------------
System Disk = \Device\Harddisk0
Windows directory = C:\Windows
AutoChk Run = 0
Number of root causes = 1
Test Performed:
---------------------------
Name: Check for updates
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: System disk test
Result: Completed successfully. Error code = 0x0
Time taken = 15 ms
Test Performed:
---------------------------
Name: Disk failure diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Disk metadata test
Result: Completed successfully. Error code = 0x0
Time taken = 16 ms
Test Performed:
---------------------------
Name: Target OS test
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Volume content check
Result: Completed successfully. Error code = 0x0
Time taken = 47 ms
Test Performed:
---------------------------
Name: Boot manager diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: System boot log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Event log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 15 ms
Test Performed:
---------------------------
Name: Internal state check
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Boot status test
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Setup state check
Result: Completed successfully. Error code = 0x0
Time taken = 141 ms
Test Performed:
---------------------------
Name: Registry hives test
Result: Completed successfully. Error code = 0x0
Time taken = 811 ms
Test Performed:
---------------------------
Name: Windows boot log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Bugcheck analysis
Result: Completed successfully. Error code = 0x0
Time taken = 265 ms
Test Performed:
---------------------------
Name: Access control test
Result: Completed successfully. Error code = 0x0
Time taken = 5304 ms
Test Performed:
---------------------------
Name: File system test (chkdsk)
Result: Completed successfully. Error code = 0x0
Time taken = 12122 ms
Test Performed:
---------------------------
Name: Software installation log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Fallback diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Root cause found:
---------------------------
Unspecified changes to system configuration might have caused the problem.
---------------------------
---------------------------
Session details
---------------------------
System Disk = \Device\Harddisk0
Windows directory = C:\Windows
AutoChk Run = 0
Number of root causes = 1
Test Performed:
---------------------------
Name: Check for updates
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: System disk test
Result: Completed successfully. Error code = 0x0
Time taken = 15 ms
Test Performed:
---------------------------
Name: Disk failure diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 16 ms
Test Performed:
---------------------------
Name: Disk metadata test
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Target OS test
Result: Completed successfully. Error code = 0x0
Time taken = 16 ms
Test Performed:
---------------------------
Name: Volume content check
Result: Completed successfully. Error code = 0x0
Time taken = 31 ms
Test Performed:
---------------------------
Name: Boot manager diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: System boot log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Event log diagnosis
Result: Completed successfully. Error code = 0x0
Time taken = 15 ms
Test Performed:
---------------------------
Name: Internal state check
Result: Completed successfully. Error code = 0x0
Time taken = 0 ms
Test Performed:
---------------------------
Name: Boot status test
Result: Completed
Windows Boot Manager
--------------------
path \bootmgr
locale en-US
inherit {globalsettings}
default {current}
resumeobject {long-number}
displayorder {current}
{eventually-another-long-number}
toolsdisplayorder {memdiag}
Windows Boot Loader
-------------------
locale en-US
inherit {bootloadersettings}
recoverysequence {long-number}
recoveryenabled Yes
resumeobject {long-number-equal-to-bootmgr}
nx OptIn
Did you remove the other settings from the result?
Or didn't they appear at all?
Because on internet I found other Win7 bcdedit (bootmgr/bootloader) samples that contain also (I excluded your previous settings):
Code:Windows Boot Manager -------------------- path \bootmgr locale en-US inherit {globalsettings} default {current} resumeobject {long-number} displayorder {current} {eventually-another-long-number} toolsdisplayorder {memdiag} Windows Boot Loader ------------------- locale en-US inherit {bootloadersettings} recoverysequence {long-number} recoveryenabled Yes resumeobject {long-number-equal-to-bootmgr} nx OptIn
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=C:
description Windows Boot Manager
locale en-us
inherit {globalsettings}
default {default}
resumeobject {1acc5e17-0300-11e7-bdf9-402cf4ec0779}
displayorder {default}
toolsdisplayorder {memdiag}
timeout 30
Windows Boot Loader
-------------------
identifier {default}
device partition=C:
path \windows\system32\winload.exe
description Windows 7
locale en-us
inherit {bootloadersettings}
osdevice partition=C:
systemroot \windows
resumeobject {1acc5e17-0300-11e7-bdf9-402cf4ec0779}
nx OptIn
detecthal Yes
@Echo On
:: This should be run inside Windows Recovery Console
Set ToDrive=C:
echo "OS Detection: Starting"
%ToDrive%
cd\%~dp0
VER > BootOSVer.txt
SET /P _WinVer=<BootOSVer.txt ::Stops here?
set _WinVer= :: set "_WinVer=" gives me _winver was unexpected at this time.
VER | find " 6.0." >nul && set "_WinVer=Vista or server 2008"
VER | find " 6.1." >nul && set "_WinVer=Win7 or server 2008 R2"
VER | find " 6.2." >nul && set "_WinVer=Windows 8"
VER | find " 6.3." >nul && set "_WinVer=Server 2012 R2 or Windows 8.1"
VER | find " 10.0." >nul && set "_WinVer=Windows 10"
IF DEFINED _WinVer (ECHO _WinVer IS defined) ELSE (ECHO _WinVer is NOT defined)
If defined _WinVer echo "%_WinVer%"&GoTo :DoIt
VER | find " 4.1." > nul && set "_WinVer=W98"
VER | find " 4.0." > nul && set "_WinVer=NT"
VER | find " 5.0." > nul && set "_WinVer=W2K"
VER | find " 5.1." > nul && set "_WinVer=XP"
VER | find " 5.2." > nul && set "_WinVer=XP 64-Bit or Server 2003 or R2"
IF DEFINED _WinVer (ECHO _WinVer IS defined) ELSE (ECHO _WinVer is NOT defined)
if defined _WinVer echo "%_WinVer%"&&GoTo :DoItOld
echo unknown operating system
GoTo :Done
:DoItOld
FIXMBR %ToDrive%
FIXBOOT %ToDrive%
::for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk get caption^, drivetype') do (
:: if [%%j]==[5] Set "CDDrive=%%i"
:: )
::COPY CDDrive:\I386\NTLDR %ToDrive%\
::COPY CDDrive:\I386\NTDETECT.COM %ToDrive%\
BOOTCFG /rebuild
GoTo :Done
:DoIt
Bootrec /scanos >BootFixerTest.txt
type BootFixerTest.txt |find /i "Windows installations: 0" >nul || goto :Done
set "ask="
set /p "ask=No installations found: type YES to rebuild BCD: "
if /i not "%ask%"=="YES" goto :FixBootRec
If not exist %ToDrive%\BCD_Backup md %ToDrive%\BCD_Backup
bcdedit /export %ToDrive%\BCD_Backup\BCD
attrib %ToDrive%\boot\bcd -h -r -s
Set "i=1"
:again
If exist "%ToDrive%\boot\bcd.old_%i%" (
set /A "i=i+1"
goto :again)
ren %ToDrive%\boot\bcd bcd.old_%i%
del C:\boot\bcd.temp >nul
bcdedit /createstore %ToDrive%\boot\bcd.temp
bcdedit.exe /store c:\boot\bcd.temp /create {bootmgr} /d "Windows Boot Manager"
bcdedit.exe /import c:\boot\bcd.temp
bcdedit.exe /set {bootmgr} device partition=%ToDrive%
bcdedit.exe /timeout 10
attrib -h -s C:\boot\bcd.temp
del %ToDrive%\boot\bcd.temp
bcdedit.exe /create /d "Windows 7" /application osloader>GUID.txt
For /F "tokens=2 delims={}" %%i in (GUID.txt) do (set _NEWGUID=%%i)
bcdedit.exe /set {%_NEWGUID%} device partition=%ToDrive%
bcdedit.exe /set {%_NEWGUID%} osdevice partition=%ToDrive%
bcdedit.exe /set {%_NEWGUID%} path \Windows\system32\winload.exe
bcdedit.exe /set {%_NEWGUID%} systemroot \Windows
bcdedit.exe /displayorder {%_NEWGUID%}
bcdedit /timeout 5
del guid.txt
:FixBootRec
BOOTREC /fixmbr
BOOTREC /fixboot
Set "CDDrive="
For /F "Tokens=*" %%a In ('WMIC LogicalDisk WHERE^
"DriveType=5 AND Access=1 OR Access=3" Get Caption 2^>Nul') Do For %%b In (
%%a) Do If Exist %%b\I386\ Set "CDDrive=%%b"
Echo (CDDrive = %CDDrive%
If Not Defined CDDrive GoTo :Didn'tCopy
If Exist %CDDrive%\I386\NTLDR Echo(Copy %CDDrive%\I386\NTLDR %ToDrive%
If Exist %CDDrive%\I386\NTDETECT.COM Echo (COPY %CDDrive%:\I386\NTDETECT.COM %ToDrive%\
:Didn'tCopy
BOOTREC /rebuildbcd
:: bootsect /nt60 SYS %ToDrive%\
:: bootsect /nt60 ALL %ToDrive%\
bootsect /nt60 %ToDrive% /force
::That will produce a legacy menu from which you can select Safe Mode.
::bcdedit /set {default} bootmenupolicy legacy
::When the computer reboots keep tapping the F8 key
:: List Os's Installed
::del %~dp0BootFixerTest.txt
:Done
bcdedit /enum
endlocal
@CMD > Null ::I put this here so the cmd window would stay open
@Echo On
:: This should be run inside Windows Recovery Console
Set ToDrive=C:
echo "OS Detection: Starting"
%ToDrive%
cd\%~dp0
VER > BootOSVer.txt
SET /P _WinVer=<BootOSVer.txt ::Stops here?
set _WinVer= :: set "_WinVer=" gives me _winver was unexpected at this time.
VER | find " 6.0." >nul && set "_WinVer=Vista or server 2008"
VER | find " 6.1." >nul && set "_WinVer=Win7 or server 2008 R2"
VER | find " 6.2." >nul && set "_WinVer=Windows 8"
VER | find " 6.3." >nul && set "_WinVer=Server 2012 R2 or Windows 8.1"
VER | find " 10.0." >nul && set "_WinVer=Windows 10"
IF DEFINED _WinVer (ECHO _WinVer IS defined) ELSE (ECHO _WinVer is NOT defined)
If defined _WinVer echo "%_WinVer%"&GoTo :DoIt
VER | find " 4.1." > nul && set "_WinVer=W98"
VER | find " 4.0." > nul && set "_WinVer=NT"
VER | find " 5.0." > nul && set "_WinVer=W2K"
VER | find " 5.1." > nul && set "_WinVer=XP"
VER | find " 5.2." > nul && set "_WinVer=XP 64-Bit or Server 2003 or R2"
IF DEFINED _WinVer (ECHO _WinVer IS defined) ELSE (ECHO _WinVer is NOT defined)
if defined _WinVer echo "%_WinVer%"&&GoTo :DoItOld
echo unknown operating system
GoTo :Done
:DoItOld
FIXMBR %ToDrive%
FIXBOOT %ToDrive%
::for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk get caption^, drivetype') do (
:: if [%%j]==[5] Set "CDDrive=%%i"
:: )
::COPY CDDrive:\I386\NTLDR %ToDrive%\
::COPY CDDrive:\I386\NTDETECT.COM %ToDrive%\
BOOTCFG /rebuild
GoTo :Done
:DoIt
Bootrec /scanos >BootFixerTest.txt
type BootFixerTest.txt |find /i "Windows installations: 0" >nul || goto :Done
set "ask="
set /p "ask=No installations found: type YES to rebuild BCD: "
if /i not "%ask%"=="YES" goto :FixBootRec
If not exist %ToDrive%\BCD_Backup md %ToDrive%\BCD_Backup
bcdedit /export %ToDrive%\BCD_Backup\BCD
attrib %ToDrive%\boot\bcd -h -r -s
Set "i=1"
:again
If exist "%ToDrive%\boot\bcd.old_%i%" (
set /A "i=i+1"
goto :again)
ren %ToDrive%\boot\bcd bcd.old_%i%
del C:\boot\bcd.temp >nul
bcdedit /createstore %ToDrive%\boot\bcd.temp
bcdedit.exe /store c:\boot\bcd.temp /create {bootmgr} /d "Windows Boot Manager"
bcdedit.exe /import c:\boot\bcd.temp
bcdedit.exe /set {bootmgr} device partition=%ToDrive%
bcdedit.exe /timeout 10
attrib -h -s C:\boot\bcd.temp
del %ToDrive%\boot\bcd.temp
bcdedit.exe /create /d "Windows 7" /application osloader>GUID.txt
For /F "tokens=2 delims={}" %%i in (GUID.txt) do (set _NEWGUID=%%i)
bcdedit.exe /set {%_NEWGUID%} device partition=%ToDrive%
bcdedit.exe /set {%_NEWGUID%} osdevice partition=%ToDrive%
bcdedit.exe /set {%_NEWGUID%} path \Windows\system32\winload.exe
bcdedit.exe /set {%_NEWGUID%} systemroot \Windows
bcdedit.exe /set {%_NEWGUID%} locale en-US
bcdedit.exe /set {%_NEWGUID%} inherit {bootloadersettings}
bcdedit.exe /set {bootmgr} resumeobject {%_NEWGUID%}
bcdedit.exe /set {bootmgr} locale en-US
bcdedit.exe /set {bootmgr} INHERIT {globalsettings}
bcdedit.exe /toolsdisplayorder {memdiag}
bcdedit.exe /timeout 5
bcdedit.exe /set {current} resumeobject {%_NEWGUID%}
bcdedit.exe /default {default}
bcdedit.exe /bootsequence {%_NEWGUID%} :After the next restart, it will be reset to DISPLAYORDER.
bcdedit.exe /set {%_NEWGUID%} nx OptIn
bcdedit.exe /set detecthal Yes
del guid.txt
:FixBootRec
BOOTREC /fixmbr
BOOTREC /fixboot
Set "CDDrive="
For /F "Tokens=*" %%a In ('WMIC LogicalDisk WHERE^
"DriveType=5 AND Access=1 OR Access=3" Get Caption 2^>Nul') Do For %%b In (
%%a) Do If Exist %%b\I386\ Set "CDDrive=%%b"
Echo (CDDrive = %CDDrive%
If Not Defined CDDrive GoTo :Didn'tCopy
If Exist %CDDrive%\I386\NTLDR Echo(Copy %CDDrive%\I386\NTLDR %ToDrive%
If Exist %CDDrive%\I386\NTDETECT.COM Echo (COPY %CDDrive%:\I386\NTDETECT.COM %ToDrive%\
:Didn'tCopy
BOOTREC /rebuildbcd
:: bootsect /nt60 SYS %ToDrive%\
:: bootsect /nt60 ALL %ToDrive%\
bootsect /nt60 %ToDrive% /force
::That will produce a legacy menu from which you can select Safe Mode.
::bcdedit /set {default} bootmenupolicy legacy
::When the computer reboots keep tapping the F8 key
:: List Os's Installed
::del %~dp0BootFixerTest.txt
:Done
bcdedit /enum
endlocal
@CMD > Null ::I put this here so the cmd window would stay open
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=C:
path \bootmgr
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {default}
resumeobject {a10da42e-0446-11e7-b322-840619ad1e89}
displayorder {default}
toolsdisplayorder {memdiag}
timeout 5
Windows Boot Loader
-------------------
identifier {default}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7 Professional
locale en-US
osdevice partition=C:
systemroot \Windows
Has Sysnative Forums helped you? Please consider donating to help us support the site!