MSEndpointMgr / ModernDriverManagement

Official repo of Modern Driver Management from MSEndpointMgr.com
https://www.msendpointmgr.com
MIT License
132 stars 77 forks source link

No driver installations work on any model: DISM: An error occurred while installing drivers. Continuing with warning code: 2 #119

Open Harze2k opened 3 years ago

Harze2k commented 3 years ago

Hi!

All our different HP models gets this error, some get past it and other crash after reboot later on in the TS. Using the latest Invoke-CMApplyDriverPackage.ps1 with: -BareMetal -Endpoint "SRV-###.internal.#######.net" -TargetOSVersion "20H2" -OSVersionFallback

Have tested to combine most of the error fixes discussed here under issues but it still fails, also tested with -TargetOSVersion "21H1" and always used the package made from DAT (with the corresponding OS download).

Everything seems to work fine, it gets detected no problem:

[DriverPackage:PS100294]: Processing driver package with 4 detection methods: Drivers - HP EliteDesk 800 G6 Desktop Mini PC - Windows 10 20H2 x64 ApplyDriverPackage 9/2/2021 09:18:10 2376 (0x0948)

##############################

[DriverPackageDownload]: Starting driver package download phase ApplyDriverPackage 9/2/2021 09:18:10 2376 (0x0948)

##############################

Checking in the DSIM log I get this, these are only the errors and warnings since it so long: 2021-09-02 09:18:41, Info DISM DISM Provider Store: PID=2792 TID=2796 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect 2021-09-02 09:18:41, Warning DISM DISM Provider Store: PID=2792 TID=2796 Failed to load the provider: X:\windows\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2021-09-02 09:18:41, Warning DISM DISM Provider Store: PID=2792 TID=2796 Failed to load the provider: X:\windows\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2021-09-02 09:18:41, Warning DISM DISM Provider Store: PID=2824 TID=2852 Failed to load the provider: X:\windows\TEMP\76BD6BDA-DFBA-46AD-BE6B-4A7DD743EB8D\PEProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2021-09-02 09:18:41, Info DISM DISM Provider Store: PID=2824 TID=2852 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect 2021-09-02 09:18:41, Info CBS Failed to find a matching version for servicing stack: C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.1161_none_7e3076a27c733477\ [HRESULT = 0x80070490 - ERROR_NOT_FOUND] 2021-09-02 09:18:41, Info CBS Failed to find servicing stack directory in online store. [HRESULT = 0x80070490 - ERROR_NOT_FOUND] 2021-09-02 09:18:42, Warning DISM DISM Provider Store: PID=2824 TID=2852 Failed to load the provider: X:\windows\TEMP\76BD6BDA-DFBA-46AD-BE6B-4A7DD743EB8D\EmbeddedProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)

2021-09-02 09:18:42, Error DISM DISM Driver Manager: PID=2824 TID=2852 No valid INF files found on the path C:_SMSTaskSequence\DriverPackage\PS100294'. - CDriverManager::OpenPackageByFolder(hr:0x80070002) 2021-09-02 09:18:42, Warning DISM DISM Driver Manager: PID=2824 TID=2852 Errors were found opening driver packages on the path C:_SMSTaskSequence\DriverPackage\PS100294. - CDriverManager::Internal_DoAddDriverPackage 2021-09-02 09:18:42, Error DISM DISM Driver Manager: PID=2824 TID=2852 onecore\base\ntsetup\opktools\dism\providers\dmiprovider\dll\drivermanager.cpp:1083 - CDriverManager::Internal_DoAddDriverPackage(hr:0x80070002) 2021-09-02 09:18:42, Error DISM DISM Driver Manager: PID=2824 TID=2852 onecore\base\ntsetup\opktools\dism\providers\dmiprovider\dll\drivermanager.cpp:527 - CDriverManager::ExecuteCmdLine(hr:0x80070002)

I have tested both with 20H2 Enterprise Image and 21H1, am running with the correct ADK for those versions. Any idea? Am stuck here basically :(

HermanGB commented 2 years ago

Are you using 64-bit WinPE and have you applied the 7-Zip patch?

Harze2k commented 2 years ago

Are you using 64-bit WinPE and have you applied the 7-Zip patch?

Hi! Yes we are using 64-bit WinPE but i have no idea about the 7-Zip patch, can you elaborate some about that?

HermanGB commented 2 years ago

On the machine where you have installed Driver Automation Tool. Copy "C:\Program Files\MSEndpointMgr\DriverAutomationTool\7Zip\7z.sfx" and overwrite "C:\Program Files\7-Zip\7z.sfx". Recreate driverpack.

Without this patch WinPE is unable to extract the 7-Zip archive.

Harze2k commented 2 years ago

On the machine where you have installed Driver Automation Tool. Copy "C:\Program Files\MSEndpointMgr\DriverAutomationTool\7Zip\7z.sfx" and overwrite "C:\Program Files\7-Zip\7z.sfx". Recreate driverpack.

Without this patch WinPE is unable to extract the 7-Zip archive.

Oh! Many thanks! Will check this straight away :)

rlgura commented 2 years ago

Is this still required with 7.04? I don't see the 7z.sfx file included with the Driver Automation Tool any longer.

staze commented 1 year ago

Same question. Doesn't seem like this patch is included anymore with the install...

staze commented 1 year ago

can confirm this is still needed. Couldn't get stuff to work, just replaced the 7zip.sfx file and rebuilt the packages, and now it works.