Server 2016 Updates [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]

lalajee 1,811 Reputation points
2024-06-13T11:54:34.68+00:00

Hi,

Updates on Windows 106 Servers are keep failing and CMS log show this error

[HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]

I have done following

  • Sfc /scannow
  • DISM /Online /Cleanup-Image /CheckHealth
  • DISM /Online /Cleanup-Image /RestoreHealth

Run this command to remove any corrupted packages

Get-WindowsPackage -Online | where { $.PackageState -eq 'Staged'} | foreach { Remove-WindowsPackage -PackageName $.PackageName -Online -NoRestart }

Still seeing same issue.

Server 2016 is running on Vsphere ESXi 6.5 and later (VM version 13)

2024-06-13 10:30:59, Info                  CONX   aepic: TRACE,AmiProviderInit,93,Failed to initialize store [19]
2024-06-13 10:30:59, Info                  CONX   aepic: TRACE,AmipVerifyCachePermissionsCorrect,2107,RegLoadKey failed [19]
2024-06-13 10:30:59, Error                 CONX   aepic: ERROR,AmipCreateNewCacheFile,110,RegCreateKeyEx failed [19]
2024-06-13 10:30:59, Info                  CONX   aepic: TRACE,AmiProviderInit,93,Failed to initialize store [19]
2024-06-13 10:30:59, Info                  CONX   aepic: TRACE,AmipVerifyCachePermissionsCorrect,2107,RegLoadKey failed [19]
2024-06-13 10:30:59, Error                 CONX   aepic: ERROR,AmipCreateNewCacheFile,110,RegCreateKeyEx failed [19]
2024-06-13 10:30:59, Info                  CONX   aepic: TRACE,AmiProviderInit,93,Failed to initialize store [19]
2024-06-13 10:30:59, Info                  CONX   aepic: TRACE,AmipVerifyCachePermissionsCorrect,2107,RegLoadKey failed [19]
2024-06-13 10:30:59, Error                 CONX   aepic: ERROR,AmipCreateNewCacheFile,110,RegCreateKeyEx failed [19]
2024-06-13 10:30:59, Info                  CONX   aepic: TRACE,AmiProviderInit,93,Failed to initialize store [19]
2024-06-13 10:30:59, Error                 CONX   aepic: ERROR,_ComputeFileHashes,2466,AeComputeMultiHashes failed [80090019]
2024-06-13 10:30:59, Info                  CBS    Failed to open regkey configuration. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to query Consent Key. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Error                 CBS    Failed to verify if catalog file \\?\C:\Windows\Servicing\Packages\Package_4355_for_KB5037763~31bf3856ad364e35~amd64~~10.0.1.13.cat is valid. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to verify manifest against catalog, mark store as corrupt. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to open online package store: . [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get key for store object type: 1 [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get root of package store. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to begin deployment installation for Update: 5037763-8795_neutral [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to execute item[0] in Package: Package_4355_for_KB5037763~31bf3856ad364e35~amd64~~10.0.1.13, Update: 5037763-8795_neutral [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to execute execution update. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to open online package store: Packages\Package_4355_for_KB5037763~31bf3856ad364e35~amd64~~10.0.1.13. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get key for store object type: 2 [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get out of package store package: Package_4355_for_KB5037763~31bf3856ad364e35~amd64~~10.0.1.13 [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to find in store package: Package_4355_for_KB5037763~31bf3856ad364e35~amd64~~10.0.1.13 [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to execute execution package: Package_4355_for_KB5037763~31bf3856ad364e35~amd64~~10.0.1.13 [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to prepare execution [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to open online package store: DriverOperations. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get key for store object type: 9 [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed getting DriverOperations registry key [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed getting driver operations parent object. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed getting DriverOperations store object [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Error                 CBS    Doqe: Failed clearing Temp driver operations queue key. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed clearing the temporary driver operations key [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to open online SYSTEM key. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get SYSTEM registry key. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get setup key [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed deleting target OS version. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to open online package store: TransformerOperations. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get key for store object type: 11 [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed getting transformeroperations registry key [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed clearing the special transformers [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to open online SOFTWARE key. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get SOFTWARE registry key. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to get current version key. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to check Store corruption flag [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to execute execution chain. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Error                 CBS    Failed to process single phase execution. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    Failed to open the registry root: n/a, key: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Servicing. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:30:59, Info                  CBS    WER: Generating failure report for package: Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.6981.1.13, status: 0x80070013, failure source: Execute, start state: Staged, target state: Installed, client id: WindowsUpdateAgent
2024-06-13 10:30:59, Info                  CBS    Failed to open the registry root: n/a, key: SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing. [HRESULT = 0x80070013 - ERROR_WRITE_PROTECT]
2024-06-13 10:31:47, Info                  CBS    Retrieved original failure status: 0x00000000, last forward execute state: CbsExecuteStateStageDrivers
2024-06-13 10:31:47, Info                  CBS    Setting RollbackFailed flag to 0
2024-06-13 10:31:49, Info                  CBS    Failed reading PoqexecCmdline registry key [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2024-06-13 10:31:49, Info                  CBS    Failed to get poqexec cmdline from Components\Configuration. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2024-06-13 10:31:49, Info                  CBS    Clearing original failure status: 0x00000000
2024-06-13 10:31:49, Info                  CBS    Setting RollbackFailed flag to 0
2024-06-13 10:31:49, Info                  CBS    Startup: Retrying failed packages.

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,522 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,210 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hania Lian 17,191 Reputation points Microsoft Vendor
    2024-06-17T06:06:37.64+00:00

    Hello,

    Try to download KB5037763 from Microsoft Catalog webiste, then install it manually.

    Microsoft Update Catalog

    If the issue still insists, try the steps below.

    [Solved] Windows Update Error 0x80070002 | Easily! - Driver Easy

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.