Get-LnvUpdateHist#
View the history of updates installed by the Install-LnvUpdate cmdlet.
Synopsis#
Retrieves the update history for Lenovo packages installed on the system. This information is stored in a .json file found in C:\ProgramData\Lenovo\Lenovo.Client.Update\History folder. A new file is created for each session with a timestamp in the filename.
Description#
Displays a history of Lenovo updates that have been installed, including installation dates and results.
Examples#
# View all update history
Get-LnvUpdateHist | Format-Table -Property InstallDate, Title, Result
# View recent updates
Get-LnvUpdateHist | Where-Object { $_.InstallDate -gt (Get-Date).AddDays(-30) }
Output#
Returns an array of installation history objects with the following properties:
Timestamp- Installation date and timeStatus- Installation result (Success, Failed, Skipped)Title- Update package titleVersion- Package versionCategory- Update category ("Camera and Card Reader", "Power Managemetn", etc)Type- Package type (0=Other, 1=Application, 2=Driver, 3=BIOS, 4=Firmware)Severity- Update severity level (1=Critical, 2=Recommended, 3=Optional)ExitCode- Installation exit codeRebootRequired- Whether reboot is requiredComputerName- System where update was installedUserName- User who performed installationMessage- Additional information or error messageUpdateID- Package identifier
History Storage#
Installation history is stored at:
This file is created automatically after each update installation session.
Examples#
Example 1: View failed installations#
Displays only installations that failed.