Skip to main content

Lenovo LSUClient - Deploy - [User Prompt]

Summary

This script uses the PowerShell module LSUClient to install available BIOS updates for Lenovo machines. The -All parameter can be used to install all available vendor updates, including BIOS, firmware, Applications and drivers.

NOTE:

  • The script prompts for variables during runtime, where we can pass arguments to either all, or install only firmware, only Lenovo updates, only drivers, or any specific driver as needed.
  • If an argument contains double quotes ("), they must be escaped by using them twice (""silent""). Otherwise, the command will not execute correctly.

Dependencies

Install-LenovoUpdates

Sample Run

SampleRun1

SampleRun1

Parameters

Valid parameters: The valid values are 'All', 'Application', 'BIOS', 'Driver', 'Firmware'. We can use them as per below examples.

ParameterRequiredExcampleTypeDescription
Argumentfalse---Leave scan and and it will give the available updates details.
ArgumentTrue-Type AllStringInstalls ALL updates.

Examples

  1. Default scan operation: If executing the script without any arguments, it will only scan.

    blank argument

  2. Apply driver updates silently: To perform an update action (for example, silent install of recommended driver updates):

    -Type Drivers

    driver argument

  3. Apply Firmware updates silently:To perform an update action (for example, silent install of recommended firmware updates):

    -Type Firmware

    Firmware argument

  4. Apply All updates silently :To perform an update action (for example, silent install of all available updates):

    -Type All

    All argument

  5. Apply BIOS,Driver,application,firmware updates silently :To perform an update action (for example, silent install of BIOS,Driver,application,firmware -NoRebootavailable updates):

    -Type BIOS,Driver,application,firmware -NoReboot

    BIOS Driver application firmware argument

  6. Apply BIOS updates silently :To perform an update action (for example, silent install BIOS available updates):

    -Type BIOS

    Bios argument

  7. Apply Application updates silently :To perform an update action (for example, silent install of Application available updates):

    -Type Application

    Application argument

  8. Apply BIOS, Driver updates silently :To perform an update action (for example, silent install BIOS, Driver available updates):

    -Type BIOS, Driver -NoReboot

    BIOS Driver argument

  9. Apply specific updates silently :

    -Type 'n3ch101w_bisbnk919kse', 'pcieeth06w_w11'

    specific updates argument

Output

  • Script Logs
    • C:\ProgramData\_automation\AgentProcedure\DellCommandUpdate\Install-LenovoUpdates-log.txt
    • C:\ProgramData\_automation\AgentProcedure\DellCommandUpdate\Install-LenovoUpdates-error.txt