Enforced Application Uninstall for Windows

  • 23 August 2019
  • 40 replies
  • 2282 views


Show first post
This topic has been closed for comments

40 replies

Userlevel 4
Badge

Thanks for this awesome worklet i was trying to use it to remove zoom so i changed the variables that stated Steam to Zoom but when run i see “COMMAND TIMED OUT.” in the activity log and and see that it fails on the device level.


Any pointers or directions i need to look at?

Userlevel 7

Do you happen to know if Zoom was running at the time the worklet attempted the uninstall?

Userlevel 4
Badge

I Don’t know to be honest, downside is zoom normally starts with the computer, force closing would be ideal.

Userlevel 7

You might need to force close Zoom by adding some code to the worklet. I know that our Zoom patching support has to check both to see if Zoom is running and also whether you are in the middle of a meeting. If you are in a meeting then Automox won’t force close Zoom to do the update, since that would interrupt what the end user is doing. The other option would be to remove Zoom from the computer’s autostart section, reboot, then run the worklet as is. Let me know if you need help with writing some code to do any of the above and I can give it a shot.

Userlevel 4
Badge

if you can share to code that would be awesome, force closing would be sufficient for my purpose would be ideal if it would use the existing variable.

Userlevel 7

Cool - I’ll work on that this coming week and post back when I have something that I can get to work at uninstalling Zoom.

Userlevel 4
Badge

awesome have a great weekend!

Hi there. I have never had any luck with this script actually and have just tried again with short name and long name ‘Meraki’ again with ‘Meraki Systems Manager Agent’.


In the activity log I get COMMAND TIMED OUT.


in the amagent log I get 2021/01/26 09:18:37 cmd_windows.go:135: runScript: Error in Wait exit status 1


I used copied and pasted the script at the top and used it exactly. Windows 10 2004. The Agent was originally installed using an MSI.


Any suggestions? Or has anyone else had this?


Thanks

Userlevel 3

Hi Djvj,

That usually happens when Automox is not able to find the app you are trying to uninstall. There are a couple causes for this. Just to be sure have you confirmed the name in HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall?


also, is this installed by an MSI or a .exe?

The name is not in that registry location. The app is still viewable in add remove programs, and there is still the meraki agent listed in running services.msc.


It was installed using MSI.


Userlevel 4

I haven’t had the opportunity to try this, but I am going to make a guess. According to the following Meraki documentation, it is using this registry location rather than the standard placement: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Meraki


If this is true, it may be useful to build out a Worklet eval and remediation based on the info here…

Testing this out is a good idea, haha 🙂


Badge

Hi @rich,


Thank you for this script. I tried using as a worklet and try to uninstall OneDrive (Microsoft OneDrive) but in the report it flagged me this error (See below). Your feedback and advise will be much appreciated.


powershell.exe : This command cannot be run due to the error: The system cannot find the file specified. At C:\ProgramData\amagent\execDir313272263\execcmd382567546.ps1:72 char:20 + … alledApps = & "$env:SystemRoot\sysnative\WindowsPowerShell\v1.0\power … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (🙂 [Start-Process], InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand COMMAND TIMED OUT.


Thanks!

U

Userlevel 2
Badge

Hi Nic,


I’ve been able to use the worklet to disable Skype for Business, but I’m trying to remove Skype that is from the App store as well and when I run the script I get Timed Out as well.


Userlevel 5

I don’t believe we can touch anything that comes from the app store. I know we can’t patch anything that comes from there.

I have encountered the same error message while trying to remove this software known as “Web Companion” by Lavasoft.


Please advise thank you.