0

I can't boot into Windows 10, it shows blue screen with 0xc000021a error code. Then tries to autorestore, but fails. I tried to restore it from Windows 11 on USB drive with DISM, but it shows me an error 0x800f0801, and in DISM log file I found a line where it failed to load ...\System32\config\SECURITY into registry key with error code 0x800703f1. More details and logs are bellow.

I have an external SSD drive with Windows 11 installed on it. I usually plug it on different computers USB port, and boot from it to Windows 11. This time, after removing external SSD drive I, as usual, turned on computer to boot from computers internal drive Windows 10 OS. It booted as normal, but when I try to login with my password, nothing happened. Like I am clicking enter and password input gets cleared, but nothing happens. I tried several times, but it always cleared the input, without logging in. I decided to restart, hopping to solve the problem, but after restart it showed me a blue screen with an error code 0xc000021a. Now I can't boot from Windows 10 that was installed on that computer. I don't even sure, that the problem was booting from external Windows 11, because I have tried it before, and everything was ok.

The logs for the commands:

C:\Windows\system32>dism /image:G:\ /cleanup-image /restorehealth /source:wim:G:\install.wim:3

Deployment Image Servicing and Management tool
Version: 10.0.22000.653
Image Version: 10.0.19045.3324
Error: 0x800f0801
DISM failed. No operation was performed.
For more information, review the log file.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

  >---------- C:\Windows\Logs\DISM\dism.log --------------
...
...
CBS    Failed to load offline \\?\G:\Windows\System32\config\SECURITY hive from '\\?\G:\Windows\System32\config\SECURITY' into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}G:/Windows/System32/config/SECURITY'. [HRESULT = 0x800703f1 - ERROR_BADDB]
CBS    Failed to load offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}G:/Windows/System32/config/SECURITY [HRESULT = 0x800703f1 - ERROR_BADDB]
CBS    Failed to load offline SECURITY hive. [HRESULT = 0x800703f1 - ERROR_BADDB]
...
...
$ sfc /scannow /offBootDir=G:\ /offWinDir=G:\Windows /offLogFile=G:\sfc-log2.txt

  >-----------sfc-log2.txt -------------  
  00000001 Shim considered [l:126]'\??\G:\Windows\Servicing\amd64_microsoft-windows- servicingstack_31bf3856ad364e35_10.0.19041.3266_none_7e25389a7c7bcadb\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND  

  00000002 Shim considered [l:123]'\??\G:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.3266_none_7e25389a7c7bcadb\wcp.dll' : got STATUS_SUCCESS  

  00000001@2023/9/15:05:58:05.197 WcpInitialize: wcp.dll version 10.0.19041.3266 (WinBuild.160101.0800)

Can anyone help me solve this issue please?

10
  • 3
    Have you reviewed the documentation for this error? learn.microsoft.com/en-us/windows-hardware/drivers/debugger/… Commented Sep 14, 2023 at 9:09
  • @DavidMarshall I have tried a lot of possible solutions, but still can't boot into old OS
    – Im Im
    Commented Sep 14, 2023 at 12:07
  • 1
    @ImIm Link provided [Bug Check 0xC000021A: WINLOGON_FATAL_ERROR] lists what the issue is and resolutions for that error code. | Issue: Winlogon process terminated unexpectedly | Cause: Occurs when a user-mode subsystem, such as WinLogon or the CSRSS, has been fatally compromised and security can no longer be guaranteed. In response, the OS switches to kernel mode. Windows cannot run without WinLogon or CSRSS | Fix: It lists how to resolve
    – JW0914
    Commented Sep 14, 2023 at 14:53
  • 1
    @ImIm (Cont'd...) If none of the resolution steps listed fix the issue, please update your question with that info and any error messages encountered. You can service an offline Windows image by booting to another Windows OS, such as 11, and using dism and sfc to service it: Dism /Image:D:\Windows /Cleanup-Image /StartComponentCleanupDism /Image:D:\Windows /Cleanup-Image /RestoreHealthSfc /ScanNow /OffBootDir=D:\ /OffWinDir=D:\Windows /OffLogFile=D:\sfc-log.txt
    – JW0914
    Commented Sep 14, 2023 at 15:00
  • @JW0914 I get the same errors one after another. I opened the Windows 10 Download folder from Windows 11 file explorer, could this be the reason why Windows 10 gives a BSoD. Maybe accessing Windows 10 files from Windows 11 changed permissions, that's why Windows 10 can't boot?
    – Im Im
    Commented Sep 15, 2023 at 6:09

0

You must log in to answer this question.