Notification

Icon
Error

Lenovo System Update - Lenovo System Update Install and Search for Driver / Utilities

Posted: Wednesday, December 27, 2017 1:17:44 PM(UTC)
laengu

laengu

Member Original PosterPosts: 2
1
Like
This installer will install the Lenovo System Update if not already installed, then afterwards search for new drivers and utilities in the background.
After giving the tool 2 minutes it will ask the user how to proceed with the installation of the packages.

The user has the choice between:
1. Now
2. After next restart
3. Postpone

As a limitation the user can only postpone the installation twice, which in our company is 2 months. After that the user has only the choice between now and after the next restart.
Handles attachments
LenovoSystemUpdate.zip (4kb) downloaded 260 time(s).
Lenovo System UpdateDownload Package
Descriptionv5.07.0065
Starts the Levono System Update in the background and installs all updates, if not installed will be installed first and then starts the processes.

The script takes the inputs:
/UpdateSeverity:<C> / <R>/ <A>
C = only critical updates
R = critical and recommended updates
A = all updates

/RebootPackagesInclusion:<1> /& <3> /& <4>
1: The reboot that is forced by the package.
3: The reboot that is required for the package to take effect.
4: The shutdown that is forced by the package.
1,3,4: every package included in the search (standard)
Final ActionNothing
Max. Duration0 min(s), 1 hour(s)
RescanNo
Steps
1. Check: LSU installed
TypeCondition
SuccessGo To Step 3
FailureGo To Step 2
Conditions
File C:\Program Files (x86)\Lenovo\System Update\ Tvsukernel.exe Exists
2. Install: LSU
TypeInstaller
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command "{PackageShare}\Installers\LenovoSystemUpdate\systemupdate5.07.0065.exe" /verysilent /norestart
3. Message: Starting LSU
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command msg.exe * The IT department is starting an update installation on your computer. Please follow instructions onscreen and do NOT close the black window!
4. Script: LSU Start Download
TypeScript
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command "{PackageShare}\Scripts\LenovoSystemUpdate.vbs" /UpdateSeverity:A /UpdateAction:DOWNLOAD /RebootPackagesInclusion:1,3,4
5. Wait: 30s
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command timeout /t 120 /nobreak
6. Check: Registry Postpone Number Exists
TypeCondition
SuccessGo To Step 7
FailureGo To Step 8
Conditions
Registry HKLM\SOFTWARE\Lenovo SystemUpdatePostpone Exists
7. Check: Registry Postpone Number
TypeCondition
SuccessGo To Step 8
FailureGo To Step 15
Conditions
Registry HKLM\SOFTWARE\Lenovo SystemUpdatePostpone Has Not Value 3
8. Message: Beginn of Installation
TypeScript
Return Codes 0,1641,3010
SuccessGo To Step 16
FailureGo To Step 9
Command "{PackageShare}\Scripts\AskUserForUpdateInstall1.vbs"
9. Message: Postpone Installation
TypeScript
Return Codes 0,1604,1641,3010
SuccessGo To Step 17
FailureGo To Step 10
Command "{PackageShare}\Scripts\AskUserForUpdateInstall2.vbs"
10. Check: Registry Postpone Number 1st
TypeCondition
SuccessGo To Step 11
FailureGo To Step 12
Conditions
Registry HKLM\SOFTWARE\Lenovo SystemUpdatePostpone Has Value 1
11. Registry: LSU Postpone Number 2nd
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command REG ADD HKLM\SOFTWARE\Lenovo /v SystemUpdatePostpone /t REG_DWORD /d 2 /f
12. Check: Registry Postpone Number 2nd
TypeCondition
SuccessGo To Step 13
FailureGo To Step 14
Conditions
Registry HKLM\SOFTWARE\Lenovo SystemUpdatePostpone Has Value 2
13. Registry: LSU Postpone Number 3rd
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command REG ADD HKLM\SOFTWARE\Lenovo /v SystemUpdatePostpone /t REG_DWORD /d 3 /f
14. Registry: LSU Postpone Number 1st
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command REG ADD HKLM\SOFTWARE\Lenovo /v SystemUpdatePostpone /t REG_DWORD /d 1 /f
15. Message: Postpone Installation Expired
TypeScript
Return Codes 0,1604,1641,3010
SuccessGo To Step 16
FailureGo To Step 17
Command "{PackageShare}\Scripts\AskUserForUpdateInstall3.vbs"
16. Script: LSU Updates Installation
TypeScript
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command "{PackageShare}\Scripts\LenovoSystemUpdate.vbs" /UpdateSeverity:A /UpdateAction:INSTALL /RebootPackagesInclusion:1,3,4
17. Registry: LSU to RunOnce
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Step 18
FailureStop (Failure)
Command REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v LenovoSystemUpdate /t REG_SZ /d "\\lansweeper\defaultpackageshare$\Scripts\LenovoSystemUpdate.vbs /UpdateSeverity:A /UpdateAction:INSTALL /RebootPackagesInclusion:1,3,4"
18. Message: LSU Updates Installation
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v UpdateMessage /t REG_SZ /d "msg.exe * Your computer is installing the postponed updates, it might restart soon."
Esben.D
#1Charlie.X Member Administration Posts: 1,982  
posted: 1/2/2018 1:44:45 PM(UTC)
Very nice showcase of what is possible with the deployment module Applause

Two quick things to help people who want to use this package.
  1. Don't forget to put the scripts in PackageShare\Scripts and the executable in PackageShare\Installers\LenovoSystemUpdate
  2. You can download the executable here: https://support.lenovo.c...be/en/downloads/ds012808
laengu
#2laengu Member Original PosterPosts: 2  
posted: 1/3/2018 7:31:23 AM(UTC)
Originally Posted by: Charles.X Go to Quoted Post
Very nice showcase of what is possible with the deployment module Applause

Two quick things to help people who want to use this package.
  1. Don't forget to put the scripts in PackageShare\Scripts and the executable in PackageShare\Installers\LenovoSystemUpdate
  2. You can download the executable here: https://support.lenovo.c...be/en/downloads/ds012808


Thanks, and yes you're right, forgot to mention that you have to put the files into the correct folders.
It was a bit try and error at first, but I'm quite satisfied with the result.
kaldoand
#3kaldoand Member Posts: 5  
posted: 3/3/2020 9:36:22 AM(UTC)
Hi, seems this stops in step 4 because of timeout. i added double time but still same. What can be wrong?
TheITGuy
#4TheITGuy Member Posts: 32  
posted: 3/12/2020 5:43:51 PM(UTC)
Originally Posted by: kaldoand Go to Quoted Post
Hi, seems this stops in step 4 because of timeout. i added double time but still same. What can be wrong?



I was having problems to with the latest version, found an older version and it worked fine. Looks like 5.07.0093 might have an issue.

Active Discussions

Lansweeper NOT doesn't work as expected
by  KevinA-REJIS   Go to last post Go to first unread
Last post: Yesterday at 5:49:29 PM(UTC)
Lansweeper Combined Vulnerability Report Q1 2019
by  Leslie Stroobant  
Go to last post Go to first unread
Last post: Yesterday at 3:27:42 PM(UTC)
Lansweeper All Devices with WINS Service Running on the Network
by  Andy.S   Go to last post Go to first unread
Last post: Yesterday at 2:44:56 PM(UTC)
Lansweeper Physical Laptops and Desktops Only
by  pryan67  
Go to last post Go to first unread
Last post: Yesterday at 1:51:56 PM(UTC)
Lansweeper Assistance With AV & Bitlocker Report
by  Andy.S   Go to last post Go to first unread
Last post: Yesterday at 12:50:47 PM(UTC)
Lansweeper Count of completed KB installation Report
by  jamie21  
Go to last post Go to first unread
Last post: 6/4/2020 11:49:57 AM(UTC)
Lansweeper local admin users of a specific device
by  Andy.S   Go to last post Go to first unread
Last post: 6/4/2020 10:42:23 AM(UTC)
Lansweeper Bitlocker Report not contain all computers
by  Andy.S  
Go to last post Go to first unread
Last post: 6/3/2020 6:20:53 PM(UTC)