Skip to content

Invoke-LenovoBIOSUpdate does not work with new ThinkPad models #359

@MrMortensen

Description

@MrMortensen

I have found out that the powershell script for Lenovo BIOS update, Invoke-LenovoBIOSUpdate.ps1, does work on some new ThinkPad models. That is the models:
ThinkPad T14 Gen 3 & 4
ThinkPad P14s Gen 3 & 4
ThinkPad T16 Gen 1 & 2
ThinkPad P16s Gen 1 & 2
Because the WinUPTP64.exe (used for 64-bit OS) doesn't exists in the BIOS update package. There is only WinUPTP.exe version.
This update that first check for WinUPTP64.exe and then WinUPTP.exe will solve the problem.

Line 127:
# WinUPTP bios upgrade utility file name
if (([Environment]::Is64BitOperatingSystem) -eq $true) {
$WinUPTPUtility = Get-ChildItem -Path $Path -Filter ".exe" -Recurse | Where-Object { $_.Name -like "WinUPTP64.exe" } | Select-Object -ExpandProperty FullName
if (!($WinUPTPUtility)) {
$WinUPTPUtility = Get-ChildItem -Path $Path -Filter "
.exe" -Recurse | Where-Object { $.Name -like "WinUPTP.exe" } | Select-Object -ExpandProperty FullName
}
}
else {
$WinUPTPUtility = Get-ChildItem -Path $Path -Filter "*.exe" -Recurse | Where-Object { $
.Name -like "WinUPTP.exe" } | Select-Object -ExpandProperty FullName
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions