Skip to content

Test-DISMFromOSDCloudUSB always enumerates to True for Lenovo devices #181

Description

@skyblaster

When testing on a Lenovo and the following folder is present, the Test-DISMFromOSDCloudUSB function enumerates to True, even though a $ComputerProduct sub folder does not exist:
E:\OSDCloud\DriverPacks\DISM\Lenovo\

This is due to "PackageID": null, statements in the Lenovo DriverPack Catalog

Causing line 30 to fail to complete the path:

$DriverPathPackageID = "$($OSDCloudDriveLetter):\OSDCloud\DriverPacks\DISM\$ComputerManufacturer\$PackageID"

And line 41 to return True

elseif (Test-Path $DriverPathPackageID){Return $true}

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