Upgrade to 24H2 failed with code 0x80070002 - 0x20007

Hi,

update from Windows Update failed, so tried upgrade from installation iso file.


In setupact.log found this error:

2025-02-23 16:38:49, Error DISM DISM Driver Manager: PID=1464 TID=1244 Failed to import driver package 'C:\Windows\System32\DriverStore\FileRepository\ehdrv.inf_amd64_9a65237fede2cbb4\ehdrv.inf'. - CDmiDriverStore::Import(hr:0x80070002)

2025-02-23 16:38:49, Error DISM DISM Driver Manager: PID=1464 TID=1244 Failed to install the driver package 'C:\Windows\System32\DriverStore\FileRepository\ehdrv.inf_amd64_9a65237fede2cbb4\ehdrv.inf'. - CDriverPackage::InternalInstall(hr:0x80070002)

2025-02-23 16:38:49, Error DISM DISM Driver Manager: PID=1464 TID=1244 onecore\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:384 - CDriverPackage::InstallEx2(hr:0x80070002)

2025-02-23 16:38:49, Error DISM API: PID=1952 TID=1444 Driver package C:\Windows\System32\DriverStore\FileRepository\ehdrv.inf_amd64_9a65237fede2cbb4\ehdrv.inf failed to install. (hr:0x80070002) - CAddDriverCommandObject::AddDriverPackage(hr:0x80070002)

2025-02-23 16:38:49, Error DISM API: PID=1952 TID=1444 onecore\base\ntsetup\opktools\dism\api\lib\dmicommandobjects.cpp:172 - CAddDriverCommandObject::InternalExecute(hr:0x80070002)

2025-02-23 16:38:49, Error DISM API: PID=1952 TID=1444 InternalExecute failed - CBaseCommandObject::Execute(hr:0x80070002)

2025-02-23 16:38:49, Error DISM API: PID=1952 TID=1956 CAddDriverCommandObject failed - DismAddDriverInternal(hr:0x80070002)

2025-02-23 16:38:49, Error SP DRVMIG: Failed to inject driver package in the new OS: C:\Windows\System32\DriverStore\FileRepository\ehdrv.inf_amd64_9a65237fede2cbb4\ehdrv.inf. Error: 0x80070002[gle=0x0000007a]


Here is full setupact.log:


Looks like this driver belongs to ESET, however Im not using ESET.


Microsoft, can you be able to help me with a fix please?

|
Answer
Answer
Hi Martin, This is Ramesh.

The error occurred when migrating the ESET driver ehdrv.inf, whose published name, according to the setup log, is oem138.inf.

1) From the admin Command Prompt, please do the following command to uninstall the driver.

pnputil /delete-driver oem138.inf /uninstall /force


If ESET was installed on the system earlier, you may run the ESET uninstaller to eliminate its files and registry entries using this tool.

https://support.eset.com/en/kb2289-uninstall-es...

2) There is a newer BIOS version for your motherboard.

Your current BIOS version is mentioned below:

                                   Manufacturer: ASUSTeK COMPUTER INC.
                                   Model : ROG Zephyrus M16 GU603ZM_GU603ZM
                                   BIOS name : GU603ZM.311
                                   BIOS version : GU603ZM.311
                                   BIOS release date : 20221222000000.000000+000


Visit the ASUS site and install the latest BIOS and chipset drivers.

Re-run the 24H2 setup and let me know how it went.



Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to provide accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as PUPs (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
______________________________________________________________________________________________________

Ramesh Srinivasan
GMT +5:30

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 16, 2025 Views 67 Applies to: