Uninstall Application In windows

Solved
C
Carmadi
PT. SATYA AMARTA PRIMA

Hi,

how do you uninstall an application on windows via soti mobicontrol?

 

 

2 years ago
Windows
ANSWERS
G
GPMOD@SOTI
2 years ago

Thank you for your response, Rafael.

Hi Carmadi, 

The script you were using, is working for me. 


Please make sure you put a proper name for the application which you want to uninstall and as Rafael suggested, please test that script in the device directly and make sure it is working then you can send a script through the MobiControl send script option and please select script type as PowerShell Native. 

Alternatively, you can use this PowerShell command to find out an installed application on the device and its name. 
Get-WmiObject -Class Win32_Product | Select-Object -Property Name

After that, you can use the below script to uninstall the program. 
$MyProgram = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “Outlook”}
$application.Uninstall()

Please find attached a screenshot for more information. 

Kind regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

Solution
RS
Rafael Schäfer
2 years ago

We don't have Windows devices managed by Soti but Soti can sent Powershell scripts. So, maybe take a look into that (for example: https://techgenix.com/how-to-uninstall-software-using-powershell/)

C
Carmadi
2 years ago
can you provide an example of writing a script to be sent to the device,

I have tried the script below but it doesn't work.

$application = Get-WmiObject -Class Win32_Product -Filter "Name = 'Sublime Text'"
$application.Uninstall()

RS
Rafael Schäfer
2 years ago

Write and test the powershell script first, directly on the device where you want it to be executed.

When it works, copy/paste it to Soti.

I'm not familar with powershell, sorry. But wanted to highlight a possible solution way.