Trying to push uninstaller, fails with exit code 1605

Elroy 11 Reputation points
2022-04-29T00:32:10.767+00:00

I'm trying to uninstall software on a group of workstations using an SCCM package. I have the product GUID and I am pushing a batch file to affected systems. It's a simple batch file with the following line:

MsiExec.exe /X {product guid} /qn REBOOT=R

It appears that the product was installed under the user context because:

  • When I run the package with admin context it fails with exit code 1605 (product not installed).
  • When I run the package with user context it fails because administrative context is required.
  • If I add the user to the local admin group and then run the package with user context it succeeds.

How can I push this uninstaller to run as the user without adding the user to the admin group?

Thanks!

Microsoft Security | Intune | Configuration Manager | Application
Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rahul Jindal [MVP] 10,911 Reputation points MVP
    2022-04-29T06:44:19.83+00:00

    Hi. Have you tried running the program only when a user logged in and with admin rights?

    0 comments No comments

  2. Garth 5,801 Reputation points
    2022-04-29T08:38:25.197+00:00

    First off it is easy to confirm if it is a user or system context it was installed with. If the software show up within cm, it was installed within the system context, otherwise it was user.

    Next you can test the sw removing in the exact matter that cm will remove, use accessing the local system account. https://www.recastsoftware.com/resources/how-to-access-the-local-system-account/

    Lastly add the switches to create a log file for the uninstall and review the logs to see what it says.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.