cancel
Showing results for 
Search instead for 
Did you mean: 
Lenovo Staff
Views: 897

 Symptom:

 

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.

 

Cause:

 

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.

 

Resolution:

 

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

 

Upgrade - Remove LUCAgent - Properties.PNG

 

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

 

Upgrade - Remove LUCAgent - Options.PNG

 

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

 

                Upgrade - Remove LUCAgent - Options - Registry1.PNG

 

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

 

                Upgrade - Remove LUCAgent - Options - Registry2.PNG

 

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

 

        Upgrade - Remove LUCAgent - Options - File1.PNG

 

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

 

        Upgrade - Remove LUCAgent - Options - WMI1.PNG

 

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.

 

Upgrade - Install LUCAgent - Properties.PNG

 

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.

 

Upgrade - Install LUCAgent - Options.PNG

 

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

 

Upgrade - Install LUCAgent - Options - WMI1.PNG

 

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.

 

Upgrade - Restart.PNG  

Was this information helpful?

Contributors