Compartilhar via


How to troubleshoot SCOM 2016 Agent upgrade or installation problem with error message “Microsoft Monitoring Agent was not installed”

Problem Description :

If you try to upgrade or install SCOM 2016 Agent manually on a Windows Server the upgrade or installation can fail with the following error message below.

Error Messages :

“A newer version of Operations Manager is already installed on this computer. Setup cannot continue.”

“Microsoft Monitoring Agent was not installed.”

“The setup wizard was interrupted before the Microsoft Monitoring Agent could be completely installed.”

scom2012agent1

scom2012agent2

Cause :

This can happen if you upgraded your SCOM Agents from SCOM 2012 to SCOM 2012 R2 and now trying to upgrade the Agent to SCOM 2016. Under these circumstances the SCOM 2012 Agent ProductCode {8B21425D-02F3-4B80-88CE-8F79B320D330} can remain as an orphaned entry in the registry and cause the upgrade or installation to fail with the above mentioned error messages.

In our case we tried to upgrade version 7.1.10184.0 to 8.0.10918.0 ;

SCOM 2012 R2 Agent Version : 7.1.10184.0
to
SCOM 2016 Agent Version : 8.0.10918.0

Solution :

Basically deleting the SCOM 2012 Agent ProductCode {8B21425D-02F3-4B80-88CE-8F79B320D330} from the following registry keys and subkeys with REG.exe or manually has fixed our problem in this case.

The registry Key “D52412B83F2008B488ECF8973B023D03” under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\ belongs to the SCOM 2012 Agent too therefore we have to delete the whole “D52412B83F2008B488ECF8973B023D03” key too. The below two reg delete commands are enough to fix this problem.

You can use the following strings to create a batch file too, if you have lots of SCOM Agents affected from this problem and push it to the servers via Group Policy, Group Policy Preferences or SCCM .

REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D52412B83F2008B488ECF8973B023D03 /f
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders /v “C:\windows\Installer\{8B21425D-02F3-4B80-88CE-8F79B320D330}\” /f

Source : How to troubleshoot SCOM 2016 Agent upgrade or installation problem with error message “Microsoft Monitoring Agent was not installed”

Cengiz KUSKAYA