Hi. Have you tried running the program only when a user logged in and with admin rights?
Trying to push uninstaller, fails with exit code 1605
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
2 answers
Sort by: Most helpful
-
-
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.