Running cmd with elevated privileges (i.e. right-click "Run As Administrator") and then running the following uninstall command:
C:>runas /user:domain\user "msiexec.exe /quiet /uninstall {936DDA62-6793-4713-999 7-E249CD61D3CB} /l*v \"C:\msiClientInstallLog.log\""
fails to execute after supplying the credentials when requested.
Attempting to automate the process using the c# we can get the process to at least execute and provide logging details which resulted in the following output (the failing part):
MSI (s) (80:3C) [11:01:00:674]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (80:3C) [11:01:00:674]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (80:3C) [11:01:00:674]: MSI_LUA: Elevation prompt disabled for silent installs
MSI (s) (80:3C) [11:01:00:674]: Note: 1: 1730 Action start 11:01:00: InstallInitialize.
MSI (s) (80:3C) [11:01:00:674]: Product: Client Software -- Error 1730. You must be an Administrator to remove this application. To remove this application, you can log on as an Administrator, or contact your technical support group for assistance.
Running with a domain user which is an administrator on the target pc, results in nothing happening. Only if you use the main <domain>\administrator credentials does this go through successfully
(i.e. the resulting verbose log output looks something like this and continues to successfully uninstall the target software:)
MSI (s) (6C:18) [12:38:15:327]: MSI_LUA: Credential prompt not required, user is an admin
Other settings we attempted to change which result in successful un-installations is when we change the registry setting: HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA to 0. However the point is not to disable the UAC but rather to use the correct channels to bypass the UAC. Specifying the main network admin password though does not fall part of that strategy. An administrator account with such privileges should suffice.
There must be a GPO setting which will allow silent installations for the specified admin account credentials.
Does anyone have any suggestions for alternative attempts or a solution to this issue?
Also see this post for more detail on: http://stackoverflow.com/questions/37458449/msiexec-uninstall-using-elevated-privileges-and-admin-user-credentials-from-c-sh
(I hope I have the correct category and Forum selected. Apologies if incorrect. Let me know which category to put this in and if possible after posting, I can edit the correct target forum category and forum.)