What does this do?
I recently started managing an office that the previous MSP was using Atera agent for their RMM solution. I did not have access to their uninstall tool and needed a way to automate this across a large number of computers. It is very simple code but as always make sure you review what it is going to do and understand everything and then test on a few computers manually before deploying through your network.
The Code
#Kill and Remove Related Services
Get-Service | Where {$_.ServiceName -Like "Splash*"} | Stop-Service -force | Remove-Service
Get-Service | Where {$_.ServiceName -Like "SSU*"} | Stop-Service -force | Remove-Service
Get-Service | Where {$_.ServiceName -Like "Atera*"} | Stop-Service -force | Remove-Service
#Kill Ticketing Agent and System Tray Process
Get-Process | Where {$_.ProcessName -Like "Ticket*"} | Stop-Process -force
#Remove Ticketing Agent from each User's AppData Folder
$users = Get-ChildItem C:\Users.
foreach ($user in $users){
$folder = "C:\users\" + $user + "\AppData\Local\Temp\TicketingAgentPackage"
Remove-Item $folder -Recurse -Force -ErrorAction silentlycontinue
}
#Remove Atera Program Files Folders
Remove-Item "C:\Program Files (x86)\ATERA Networks" -Recurse -Force -ErrorAction silentlycontinue
Remove-Item "C:\Program Files\ATERA Networks" -Recurse -Force -ErrorAction silentlycontinue
#Removes Registry for Software and Autorun
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "AlphaHelpdeskAgent"
Remove-Item -Path 'HKLM\SOFTWARE\ATERA Networks'
#Uninstall Splashtop Streamer
$app = get-wmiobject -class Win32_Product -filter "Name = 'Splashtop Streamer'"
$app.Uninstall()
4 Responses
works great thanks
Hi,
Thanks for this. I got a few errors but it seemed to do the trick. I too found Atera sadly lacking and Splashtop was terrible – like a cancer – could not get rid of it. I work in the UK as a single practioner. Can I ask what you use for your trusty RMM?
Best regards
Martyn
Sorry I never saw the last part asking about what I use and just revamped my website and saw this. I use Microsoft Endpoint manager for clients that are using the 365 ecosystem. For everyone else I actually use Comodo’s ITarian which allows python scripting which will also allow running Powershell scripts. It has a great remote support tool that can be setup to allow unattended access or you can have the user approve, patch management, ticketing system, and more. https://www.itarian.com/ It is free for up to 50 devices and $1.25 each if you go over 50.
I switched from Itarian that was Komodo and “free forever” and then became not free and it’s trash and Atera is 100% better.