It’s been a while so I figured it’s time for a new post.
When trying to change the configuration of an operations manager agent to use a different management server I ran into the error “microsoft esent keys are required to install this application”.
After clicking OK, no changes are made. This error is apparently being caused by UAC and is described in a microsoft knowledgebase article here.
Quote: ‘…An application is treated as an administrator who is approved if the administrator accepts a UAC prompt during the first-time installation of the application. A user who does not have administrative credentials should be able to perform maintenance operations on such applications without being prompted for administrative credentials. However, no UAC prompt is generated because the system cannot differentiate between an administrator and a user who does not have administrative credentials.
Therefore, if the user has to perform a modification in a change or repair action that only an administrator can perform, the user is blocked because no UAC prompt is generated….’
The workaround that is offered by microsoft is to run the installation from an elevated command prompt by using specific GUID’s. Like this:
For SP1 Agents: msiexec /I{768DB8BD-CB3A-43F4-9A4C-BA2921D27AD3}
For R2 Agents: msiexec /I{25097770-2B1F-49F6-AB9D-1C708B96262A}
However this method might not work as expected because the GUID of the installed application can apparently change after having installed hotfixes or updates for the application. And you will receive the error “This action is only valid for products that are currently installed”. This is also mentioned in this discussion on one of MS’s Operations manager 2007 forums: http://social.technet.microsoft.com/Forums/en-US/operationsmanagergeneral/thread/def8d8b3-4ed0-4ebd-bf3e-d42e04752b7b.
To work around this you can look up the right GUID in the registry which is located somewhere under ‘HKLMSoftwareMicrosoftWindowsCurrentVersionUninstall’:
Browse through the subfolders and look at the ‘DisplayName’-Key for your application.
When found, the ‘ModifyPath‘-Key will show you the command to run from the elevated command prompt.
4 comments
The GUID for SP1 (slipstream) should always be E7600A9C-6782-4221-984E-AB89C780DC2D
Jonathan
thanks for the article, very helpful!
Sergey
Hi, I was once unsuccesful using either of the options above at customer site and the only solution was to run the MSIZAP TW ({25097770-2B1F-49F6-AB9D-1C708B96262A} command and after that install/uninstall the agent once again to have the agent completely removed from the system.
Richard
Another approach is to launch the Control Panel “Programs and Features” as Administrator. On my Windows Server 2008 x64 SP2 server I right-clicked the “Command Prompt” in Start and selected “Run as Administrator”, typed “appwiz.cpl” which launches “Programs and Features” then made the necessary changes.
Thanks for the pointer on UAC causing the problem.
aenagy