Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lenovo drivers failing to install #173

Open
SanderVerroen opened this issue Sep 24, 2024 · 2 comments
Open

Lenovo drivers failing to install #173

SanderVerroen opened this issue Sep 24, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@SanderVerroen
Copy link

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<datetime>\

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:

  • Add '/DIR=C:\DRIVERS\SCCM' to the extraction process in Invoke-OSDCloudDriverPack.ps1, i.e.: Start-Process -FilePath $ExpandFile -ArgumentList "/SILENT /SUPPRESSMSGBOXES /DIR=C:\DRIVERS\SCCM" -Wait
  • Alter the #DestinationPath from: $DestinationPath = Join-Path $Item.Directory 'SCCM' to: $DestinationPath = "C:\DRIVERS"
@OSDeploy
Copy link
Owner

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

David

@OSDeploy OSDeploy self-assigned this Sep 24, 2024
@OSDeploy OSDeploy added the bug Something isn't working label Sep 24, 2024
@OSDeploy OSDeploy pinned this issue Sep 24, 2024
@skyblaster
Copy link
Contributor

I tested extracting a couple Lenovo driver packs using Save-MyDriverPack and found that you also have to add the /VERYSILENT parameter in order to ignore a dialog box warning about the change of output location.

Start-Process -FilePath $ExpandFile -ArgumentList "/DIR=`"$DestinationPath`" /SILENT /VERYSILENT /SUPPRESSMSGBOXES" -Wait

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants