Lenovo.Client.Update
Find, download and install updates from PowerShell, with signature checks.
Inventory
- What it is
- Lenovo's PowerShell module for driver, BIOS/UEFI and firmware updates that allows for a completely customizable update experience.
- Requires
- Windows 10 or 11, PowerShell 5.0 or later, administrator rights.
- Install
Install-Module -Name Lenovo.Client.Update -Scope AllUsers- Guide
- docs.lenovocdrt.com/guides/lcu
What it can do
Lenovo.Client.Update covers the full update lifecycle, from discovery to installation, and maintains compatibility with other Lenovo tools such as Update Retriever and ThinkVantage Repository Manager. It leverages the same "System Update" content as Lenovo Commercial Vantage. Additionally, this solution provides:
- Digital signature verification and enforcement.
Install-LnvUpdate -VerifySignaturechecks packages before installing them. - Install history in WMI.
-ExportToWMIwrites each installation to WMI for compliance reporting;Get-LnvUpdateHistandGet-LnvUpdateFromWmiread it back. - Repositories on demand.
Get-LnvUpdatesRepobuilds a local repository for a machine type, for full OSD task sequence support. - Applicability debugging. New in 1.0.6,
Debug-LnvUpdateexplains, package by package, which applicability and install-detection tests a machine did or did not satisfy.
Examples
# Get applicable updates
$updates = Get-LnvUpdate
$updates
# Download, then install with signature verification
$updates | Save-LnvUpdate -Path 'C:\Updates' -ShowProgress
$updates | Install-LnvUpdate -Path 'C:\Updates' -VerifySignature -Verbose
# OSD: build a local repository, then install from it and record to WMI
Get-LnvUpdatesRepo -MachineTypes 21NT -RepositoryPath 'C:\Repo'
Get-LnvUpdate -Repository 'C:\Repo' | Install-LnvUpdate -ExportToWMI
Cmdlets
Get-LnvUpdateGet-LnvDownloadSave-LnvUpdateInstall-LnvUpdateExpand-LnvUpdateDebug-LnvUpdateGet-LnvUpdateConfigurationSet-LnvUpdateConfigurationGet-LnvUpdateHistGet-LnvUpdateFromWmiGet-LnvUpdatesRepoGet-LnvUpdateSummary
Get-LnvDownload and Get-LnvUpdatesRepo moved here from Lenovo.Client.Scripting, and are maintained in this module going forward.
Migrating from LSUClient
The Lenovo.Client.Update module originated as a fork of the LSUClient community module on GitHub. The core commands work identically under new names, so most scripts designed for LSUClient can migrate by simply renaming these commands:
| LSUClient | Lenovo.Client.Update |
|---|---|
Get- | Get- |
Save- | Save- |
Install- | Install- |
Expand- | Expand- |
Get- | Get- |
Set- | Set- |
