Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Software and Operating SystemLenovo Patch for SCCM Knowledge Base

Lenovo Updates Installing Multiple Times After an OS Upgrade Task Sequence - Revised 2019-09-16



After using an OS Upgrade Task Sequence, all Lenovo Updates targeted to the specific model will repetitively install, show waiting for restart, and then upon restart, reappear in the Software Updates in Software Center to be installed again.




During the upgrade, the WMI Provider for the LUCAgent will be broken.  The LUCAgent will show as installed, but will not work as desired.  The LUCAgent processes and converts driver dates to a readable format for evaluation of the IsInstalled rules of the applicable updates.




During the Upgrade Task Sequence, prior to the Upgrade Operating System task, remove the LUCAgent from the device.  After the Upgrade Operating System task, reinstall the LUCAgent from a package.


The first step is to remove the LUCAgent during the Prepare for Upgrade phase of the task sequence.  In this phase, add a Run Command Line task to the task sequence.  On the Properties tab, give the task a name, ex. Remove LUCAgent.  The Command Line to execute is:


"C:\Program Files (x86)\Lenovo\UpdatesCatalogAgent\unins000.exe" /SILENT



On the Options tab of the Run Command line task, set the following conditions:



If All of the following are true:

        If Any of the following are true:

                Registry "HKEY Local Machine\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\UpdatesCatalogAgent_is1” (REG_SZ) exists




                Registry "HKEY Local Machine\Software\Microsoft\Windows\CurrentVersion\Uninstall\UpdatesCatalogAgent_is1” (REG_SZ) exists




        File   “C:\Program Files (x86)\Lenovo\UpdatesCatalogAgent\unins000.exe” exists




        WMI Query   SELECT * FROM Win32_ComputerSystemProduct WHERE Vendor = ‘LENOVO’




The second step is to create a package to install the LUCAgent.


To obtain the latest version of the LUCAgent published to the environment, navigate to the Configuration Manager console, click on Software Library > Overview > Software Updates > Lenovo Patch.  Set the SmartFilter to All.  In the Search box, type in LUCAgentClick to select the highest version that is published.  In the information section at the bottom of the screen, scroll until Download URL is visible.  Click the link and Save the file.


Create the packages and as part of the wizard, create a standard program to install the LUCAgent.  The command line for the example is LUCAgent1005.exe /VERYSILENT.  When creating the program, set Run to Hidden and set Program can run to Whether or not a user is logged on.


Third, add an Install Package task to the Post Processing phase of the task sequence.  Since there is a high probability the device will not be removed from any collections for deployed software updates, this task will need to be added relatively soon after the Restart task in the Upgrade Operating System phase of the task sequence.  By adding this task earlier in the Post Processing phase, if any updates happen to apply to the system, the LUCAgent will be in place to handle them accordingly.


On the Properties tab, choose the LUCAgent install package and program created in step 2.



On the the Options tab of the LUCAgent installer task, add a condition to use a WMI query to detect if the computer is a Lenovo.



WMI Query   SELECT * FROM Win32_ComputerSystemProduct WHERE Vendor = ‘LENOVO’



The last step to ensure the LUCAgent is operating properly is to restart the computer.  After reinstalling the LUCAgent, it is strongly recommended to reboot the computer.  This will allow the agent to be fully responsive to Software Updates Scan Cycles.  After the Install Package task, add a Restart Computer task.



Was this information helpful?

Yes No


Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop