OSDeploy / OSD

OSD Shared Functions
MIT License
148 stars 61 forks source link

Lenovo drivers failing to install #173

Open SanderVerroen opened 1 week ago

SanderVerroen commented 1 week ago

Describe the bug Most Lenovo driver packs extract to a subfolder in C:\DRIVERS\SCCM\ Some however extract to a subfolder in C:\DRIVERS\ The Invoke-OSDCloudDriverPack.ps1 assumes that all driver packs extract to s subfolder in C:\DRIVERS\SCCM\ This results in the pnputil not finding any drivers and therefor will not install the extracted drivers.

To Reproduce Steps to reproduce the behavior: For instance, take the driver pack Lenovo T14s gen 1 (model 20UJ) Extract: "tp_t14s_gen_1a_mt20uh-20uj_x13_gen_1a_mt20uf-20ug_w11_21_22_202310.exe" /SILENT /SUPPRESSMSGBOXES The result is drivers in C:\Drivers\TP_T14S_GEN_1A_MT20UH-20UJ_X13_GEN_1A_MT20UF-20UG_W11_21_22_202310\\

The Invoke-OSDCloudDriverPack.log will contain the error 'cannot find C:\Drivers\SCCM' and therefor will not install any drivers.

Possible Solutions This can be easily resolved in several ways:

OSDeploy commented 6 days ago

Awesome, thanks for adding this. I'll try to reproduce and add the solution.

David