This is useful if using remote shell to do things. I used this when I migrated from RemoteUtilities (great software, but I can’t seem to find a cheap host for a Windows OS, MeshCentral only requires a small Linux server) to MeshCentral. I was able to use the remote shell through SentinelOne to do this. SentinelOne is by far the best NextGenAV out there.

If remote shell uses CMD we’re going to want to open/start powershell

powershell.exe

Use the following command to find the installed programs.

Get-WmiObject -Class Win32_Product | Select-Object -Property Name

Now we get the variable needed to uninstall the program

$MyApp = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "Remote Utilities - Host"}

Now we initiate the uninstaller for the app

$MyApp.Uninstall()