Skip to main content

Lenovo OneCli Orchestrator

Summary

Lenovo OneCLI is a comprehensive management utility that enables centralized discovery, inventory, and lifecycle management of firmware and driver updates for supported Lenovo servers and systems. It provides capabilities for scanning systems, downloading updates, and deploying firmware and driver patches across ThinkEdge, ThinkSystem, ThinkServer, and Wentian platforms.

This is an automate implementation of Invoke-LenovoOneCLI. It is designed to manage firmware and driver updates on supported Lenovo systems(specially servers) using Lenovo OneCLI.

The script handles the deployment of Lenovo OneCLI on the target machine and enables the execution of OneCLI commands to perform system updates and maintenance tasks.

Supported Lenovo OneCLI commands can be found at https://pubs.lenovo.com/lxce-onecli/onecli_bk.pdf

Dependencies

Sample Run

Example 1:

Execute the script without any parameter to return the available updates.
Image1

Example 2:

Execute the script with below parameter to download and immediately apply all updates without any reboot or prompts:

  • Argument: update flash --mt 7Z73 --ostype win2022 --scope latest --dir C:\updates --noreboot --quiet

Note: --mt(machines type) and ostype varies as per machine.
Image1

Example 3:

Execute the script with below parameter to download and immediately apply firmware updates without any reboot or prompts:

  • Argument: update flash --mt 7Z73 --ostype win2022 --scope latest --type fw --dir C:\updates --noreboot --quiet

Note: --mt(machines type) and ostype varies as per machine.
Image1

Example 4:

Execute the script with below parameter to download and immediately apply driver updates without any reboot or prompts:

  • Argument: update flash --mt 7Z73 --ostype win2022 --scope latest --type dd --dir C:\updates --noreboot --quiet

Note: --mt(machines type) and ostype varies as per machine.
Image1

Example 5:

Execute the script with below parameter to download all latest updates:

  • Arguments: update acquire --mt 7Z73 --ostype win2022 --scope latest --dir C:\updates

Note: --mt(machines type) and ostype varies as per machine.
Image1

Example 6:

Execute the script with below parameter to Apply all downloaded updates:

  • Arguments: update flash --dir C:\updates

Note: --mt(machines type) and ostype varies as per machine.
Image1

Example 7:

Execute the script with Force = 1 to deploy Lenovo OneCli even if it already exists on the machine.

Image1

User Parameters

NameRequiredExampleDescription
ForceFalse
  • True
  • False
Set it to True to deploy Lenovo OneCli even if it already exists on the machine.
ArgumentFalse
  • update --mt 7Z73 --ostype win2022 --scope latest --dir C:\updates --noreboot --quiet
  • update --mt 7Z73 --ostype win2022 --scope latest --dir C:\updates
  • update acquire --mt 7Z73 --ostype win2022 --scope latest --dir C:\updates
  • update acquire --mt 7Z73 --ostype win2022 --scope latest --dir C:\updates --type fw
  • update acquire --mt 7Z73 --ostype win2022 --scope latest --dir C:\updates --type dd
  • update flash --dir C:\updates
  • update flash --dir C:\updates --type fw
  • update flash --dir C:\updates --type dd
    --mt is machine type which will vary according to the machine type.
    --ostype ostype will also vary as per machine's OS. Provide it in this format only.
    --fw is for firmware updates
    --dd is for driver updates
    Default Command used with script if no argument is passed. It will scan all the available updates on the machine and will store it in the provided directory. update scan --output $workingDirectory
    Notes : Download directory must be same to download and apply updates separately.
Custom argument string passed to Onecli.exe. If omitted, the script uses the default scan command.

Global Parameters

NameRequiredExampleDescription
URLTruehttps://download.lenovo.com/servers/mig/2025/11/10/63602/lnvgy_utl_lxce_onecli01s-5.4.0_windows_indiv.zipURL for the OneCLI ZIP to download. Available from the Lenovo support website (https://support.lenovo.com/solutions/lnvo-tcli)
Note: This URL must be changed whenever a new Onecli version is released to keep OneCli up to date.
DebugFalseFalse, TrueWhen True, enables informational logging; when False (default), informational logs are suppressed to avoid adding entries to the h_scripts table. Set to True to assist with troubleshooting.
ScriptEngineEnableLoggerFalseFalse, TrueWhen True, enables final (success/failure) logging; when False (default), these logs are suppressed to avoid adding entries to the h_scripts table. Set to True to assist with troubleshooting.

Notes:

  • If no Argument is specified, the script performs a default scan and lists available updates, storing results in the working directory.
  • If Argument is provided, the script executes Onecli.exe with the specified arguments.
  • Supported Lenovo OneCLI commands to be used with Onecli can be found at https://pubs.lenovo.com/lxce-onecli/onecli_bk.pdf
  • The OneCLI download URL is version-specific and changes when new releases are published. To obtain the latest URL, visit https://support.lenovo.com/solutions/lnvo-tcli, locate the OneCLI Windows Utility package in the downloads section, and copy the download link from the Payload Files section.

Output

  • Script Logs

Changelog

2026-04-17

  • Initial version of the document