Windows Update Error 8007002 on Windows 2012 R2

kuzma2000

Active member
Joined
May 4, 2021
Posts
29
Hello!

I have a Windows 2012 R2 server that can't install last monthly update.

The first step passes, the server reboots and the update rolls back. The server then tries to install the update again.

In the system log there are error 80070002

«P2: Package_for_RollupFix
P3: 9600.19995.1.13
P4: amd64
P6: 80070002
P10: WindowsUpdateAgent»

There was a broken memory module on this server that damaged the file system.
I've been trying to solve the problem for over a month.

I don't have nornal backup before the crash ☹

«Dism/Online/Cleanup - Image/RestoreHealth» reports that there is damage and it has successfully repaired them.
sfc /scannow - no error

But, there are records in the setapi.dev.log about trying to install a CPU driver from "C:\Windows\System32\DriverStore\FileRepository\cpu.inf_amd64_e7c26e87877e3ac2".

And they're really not there.

I tried manually to create a folder (for .inf and other files) in the “C:\Windows\System32\DriverStore\FileRepository” and copy the files there.

It didn't help.

As I understand it, the files in the «C:\Windows\System32\DriverStore\FileRepository» are a hardlink to "C:\Windows\WinSxS"

Here's the record is in setupapi.dev.log

«Hardlinking 'C:\Windows\WinSxS\amd64_tpm.inf_31bf3856ad364e35_6.3.9600.18066_none_9cf8b86bdb0ce337\tpm.inf' to 'C:\Windows\System32\DriverStore\FileRepository\tpm.inf_amd64_5a309be8ad8bacd1\tpm.inf»

I created directories with drivers for the processor and shady copies (it also had an error) in both locations.

I tried manually to install the last«2021-04 Servicing Stack Update for Windows Server 2012 R2 for x64-based Systems (KB5001403)»

I tried manually installing the driver for the processor - the system does not find a driver for the processors at all.

But it didn't work.

Here's the log of the SFCFix program and all the logs that I looked at on the server.

Can someone help?

SFCFix version 3.0.2.1 by niemiro.
Start time: 2021-05-04 10:57:47.647
Microsoft Windows Server 2012 R2 Update 3 - amd64
Not using a script file.

AutoAnalysis::
SUMMARY: No corruptions were detected.
AutoAnalysis:: directive completed successfully.

Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2021-05-04 10:59:08.604
----------------------EOF-----------------------
 

Attachments

Hi Welcome to Sysnative,

Sorry for the delay, do you still need assistance with this issue?
 
Hello.
I've partially solved the problem.
First I made a copy of the server and trained on it.
I disabled the driver signature check (only the F8 worked) and manually installed the processor driver.
After that, the update was installed.
 
Hi,

This should not be necessary unless you are using some third-party drivers that are not compliant with Microsoft's requirements for signed drivers.

So what remains to fix?
 
Hi

I understand, but this was the only way to deliver updates.
The OS tried to update the processor driver but could not do it because the driver does not have a digital signature.
I updated the driver manually by specifying the path to it in the C:\Windows\WinSxS folder
Now, OS has broken processor driver - no digitall cert for it.

I checked the digital signature with signceck and overwrite the cat file but it didn't help.
I don't know how to fix an unsigned driver. I think in the future the situation will repeat itself
 
Ok, lets see.

Please attach the file c:\Windows\INF\setupapi.dev.log and provide the following files:

Retrieve the Components Hive
  1. Navigate to C:\Windows\System32\Config and locate the COMPONENTS file
  2. Please copy the COMPONENTS file to your desktop
    Note: If you receive an error that this file is in-use, simply reboot your computer and try again
  3. Right-click on this file on your Desktop and select Send To...Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your Desktop
  4. If file will is too large to upload to the forum please share the file using a service like Dropbox, OneDrive, Google Drive, or upload to Swiss Transfer and just provide the link for the file here


Export Registry Hive (CBS)
  • download the script ExportCBSRegistry2.cmd and save it to the Desktop
  • right-click the file ExportCBSRegistry2.cmd and select Run as administrator
  • when the script ends a new file called SoftwareCBS.zip will be located on the Desktop
  • If the zip file is too large to upload to the forum please share the file using a service like Dropbox, OneDrive, Google Drive, or upload to Swiss Transfer and just provide the link for the file here


Export Registry keys (SBS)
  • download the script ExportSbSRegistry.cmd and save it to the Desktop
  • right-click the file ExportSbSRegistry.cmd and select Run as administrator
  • when the script ends a new file called SoftwareSBS.zip will be located on the Desktop
  • If zip file is too large to upload to the forum please share the file using a service like Dropbox, Google Drive, etc. or upload to Swiss Transfer and just provide the link for the file here
 
1A
Here I modified both cmd files. I have a Russian-language version of the OS.
Now, archives are created in a folder witch CMD file.
I hope this verison of CMD scripts will help someone.
 
Hi,

The scripts should work on other languages, at least for me it works on a Portuguese OS where the Desktop folder have a different name.

Install Update using Dism
  1. Please download KB5004954 save the file to c:\windows\temp
  2. change the name of the update file to a smaller name Windows8.1-KB5004954-x64.msu
    (keep the extension .msu in the end of the file name in case its visible if not ignore that)
  3. open the Command Prompt as Administrator, instructions for Windows 8.x
  4. type or Copy & Paste the following commands line by line:

    cd /d c:\windows\temp
    expand Windows8.1-KB5004954-x64.msu -f:* C:\windows\temp
    DISM.exe /Online /Add-Package /PackagePath:C:\windows\temp\Windows8.1-KB5004954-x64.cab

  5. You should receive the message:
    The operation completed successfully.
    Restart Windows to complete this operation.
    Do you want to restart the computer now (Y/N)?
  6. Make sure to allow the computer to restart if prompted.

    If you receive any other message:
  7. Right-click on the Command Prompt window and click Select All, this will invert all of the colors by selecting the text, now press enter. All of this text is now copied.
  8. Paste (Ctrl+V) it into your next post please.

Note: If DISM fails please attach the CBS.log and the setupapi.dev.log
 
I could not restart the server to install the latest updates. The office worked. I have updated the file in Onedrive
 
I could not restart the server to install the latest updates. The office worked. I have updated the file in Onedrive
Please attach the log to the topic if they are too big to upload zip them.
 
Done.
CBS logs is to big.
I put in in onedrive folder

Its too big because you attached the CBS folder and not only the CBS.log!

Please attach also the setupapi.dev.log as requested. The update installed without error?
 
D:\Temp\2021-07-08>DISM.exe /Online /Add-Package /PackagePath:D:\Temp\2021-07-08
\exp\Windows8.1-KB5001403-x64.cab

Cистема DISM
Версия: 6.3.9600.19408

Версия образа: 6.3.9600.19397

Обрабатывается 1 из 1 - Добавление пакета Package_for_KB5001403~31bf3856ad364e35
~amd64~~6.3.1.1
[==========================100.0%==========================]
Операция успешно завершена.

D:\Temp\2021-07-08>
 
Please follow carefully my instructions.

Update was not to install using dism, please remove it
Code:
DISM.exe  /Online  /Remove-Package  /PackagePath:c:\Temp\2021-07-08\exp\Windows8.1-KB5001403-x64.cab

If dism ask for a reboot please do it and then install the update by executing the MSU file.
 
I rebooted the server and tried to install the update using the msu file. OS reported that there is already such an update
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top