Skip to content

Lenovo drivers failing to install #173

Description

@SanderVerroen

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions