Windows System Repair - Repair not possible

Joined
Sep 28, 2016
Messages
41
Reaction score
1
Windows system repair reports
that repair is not possible and
In the file SrtTrail.txt the number of error causes = 1, but in all tests the error code = 0x0

in DISMRepairLogFile.txt
stands among other things
2024-03-26 15:32:54, Info CBS Failed to find a matching version for servicing stack: F:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.4163_none_7e304ec47c735f2e\ [HRESULT = 0x80070490 - ERROR_NOT_FOUND]

This on Windows 10 Pro 22H2
because update KB5035845 reports error 0x80070057.

Thanks for a tip
 
Joined
Apr 16, 2014
Messages
130
Reaction score
20
Try running:
sfc /scannow

It should be run from an Administrator console (either a command prompt or Powershell prompt)

The error is reporting that the place that it uses to repair Windows "F:\Windows\WinSxS\" is different to what is actually running.
My understanding is that "WinSxS" is the Windows "Side by Side" file location.

Do you have windows in C:\Windows ?

This may also be the fact that Windows is not updating the location as well.
 
Joined
Sep 28, 2016
Messages
41
Reaction score
1
Unavailingly I ran sfc, dism and at last ccleaner.
At last I watched the update procedure with Process Monitor
and the last failure is NAME NOT FOUND by RegQueryValue
HKLM\System\CurrentControlSet\Control\WMI\Security\f27df866-c85a-518e-f34a-dc6fddbcd0c9
 
Joined
Apr 16, 2014
Messages
130
Reaction score
20
Could you please attach the log file CBS.log

It is located in:
c:\Windows\Logs\CBD
 
Joined
Sep 28, 2016
Messages
41
Reaction score
1
Thank You for viewing my CBS.log file
Because the zipped file was too big to attach, I linked it to
 
Joined
Sep 28, 2016
Messages
41
Reaction score
1
Now I was able to install this update KB5035845 in my Windows 10 Pro.

I wrote this documentary about it.
I cannot guarantee that there are no errors in the text.
These measures require knowledge of Windows administration.

These pages were helpful:
https://www.deskmodder.de/blog/2024...heitsupdate-kann-fehler-0x80070643-ausloesen/

KB5028997: Instructions to manually resize your partition to install the WinRE update - Microsoft Support

https://www.deskmodder.de/blog/2023...zu-kleiner-partition-anleitung-von-microsoft/

https://www.deskmodder.de/blog/2024...heitsupdate-kann-fehler-0x80070643-ausloesen/

CMD (=Command Prompt) in this explanation should always be used with administrator rights.

In principle it is necessary to enlarge the Recovery Partition.

I recommend backing up the contents of the recovery partition to a normal drive first, as the Winre.wim file was lost on my first attempt and I had to laboriously restore it from an installation medium.

"reagentc /info"
shows that the Recovery Partition is noted.
e.g.
Windows Recovery Environment (Windows RE) and system reset configuration
Information:

Windows RE status: Enabled
Windows RE location: \\?\GLOBALROOT\device\harddisk0\partition3\Recovery\WindowsRE
Boot Configuration Data (BCD) identifier: 9de24810-0f27-11ef-872d-87ee807002f3
Recovery image location:
Recovery image index: 0
Custom image location:
Custom image index: 0

To edit the recovery partition,
enter via CMD the command "reagentc /disable".

First, check whether the disk partition style is a GUID Partition Table (GPT) or a Master Boot Record (MBR).
To do this, use the command "list disk" in DISKPART and see if there is an asterisk (*) in the Gpt column. If there is an asterisk (*), it is a GPT-Drive. Otherwise the drive is MBR.

In my case it is a MBR Drive.

To back it up assign a drive letter to the recovery partition (e.g. R ) with DISKPART
after selecting the recovery partition
"assign letter=R"
Then look with CMD "R:" and with "dir /a", what is stored there.

Go the deepest directory of R: , which is \Recovery\WindowsRE and then
delete the attributes H and S with "attrib -h -s *.*" .

Now back up data with
"mkdir C:\Backup_WinRe"
and
"copy *.* C:\Backup_WinRe" .

With DISKPART select the partition which has the info Boot in "list volume”.

Now hope that you can shrink this partition with:
"shrink desired=250 minimum=250"

If that worked, you can move on to recreate the Recovery Partition.

With DISKPART select the Recovery Partition and with the command
"delete partition override" delete the partition.

In my case with the MBR drive, the partition with the maximum remaining size, recreate the partition with:
"create partition primary id=27"
Otherwise, consult the pages mentioned at the beginning.

With "list part" you can see that the newly created partition is selected and is from Type Recovery.

Now format it with:
>format fs=ntfs label="Windows RE tools"<
It is recommended to set the id again:
In my case with the MBR drive:
"set id=27"
Otherwise, consult the pages mentioned at the beginning.

with "list vol" you can also see the label Windows RE .
after "assign letter=P" (now I had to use a different drive letter)
and "exit" out of DISKPART
Now via CMD open drive P: and recreate the directories as they were before the deletion:
"mkdir P:\Recovery\WindowsRE"
Now go to the directory where the files were saved and in my case copy them with:
"C:"
"cd \Backup_WinRe"
"copy *.* P:\Recovery\WindowsRE"

Finally these commands:
"reagentc /setreimage /path P:\Recovery\WindowsRE /target C:\Windows"
"reagentc /enable"

"reagentc /info"
showed that everything is fine again

After a reboot there were no more errors with Windows Update KB5035845
and few Windows updates followed with the necessary restart.

However later I noticed that the Windows Update KB5034441 cannot be installed.
It breaks with the error 0x80070643.

I have used similar methods as described above.

DISKPART showed that now 2 Recovery Partitions exist.

reagentc /info
showed that the previous partition is registered.

So I started again
reagentc /disable

Now I assigned a drive letter to the 2nd new Recovery Partition and recognized via "dir /a" that a new Winre.wim is available, now larger.

Similar to what was described above I saved the contents in Recovery\WindowsRE of this 2nd Recovery Partition .

Then with DISKPART I deleted both Recovery Partitions .

Like described above I created a new one and copied the newly created backed up files into the Recovery\WindowsRE path of that partition.

As above, I concluded with:
"reagentc /setreimage /path P:\Recovery\WindowsRE /target C:\Windows"
"reagentc /enable"

"reagentc /info"
showed that everything was fine again.

After Reboot all Windows updates were error-free.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top