If you delete an agent from the console, it can still be running on the client, but not show up in our dashboard. You need to delete a few registry keys then reinstall the agent of that client. This powershell script is also hosted on itstuff.ultrex.com for ease of copy/paste from target device.

Run the following fully in command line (ignore any errors). Then reboot machine, then reinstall Atera Agent.

# Stop Atera service if running

Write-Output “Stopping Atera services…”

Stop-Service -Name “AteraAgent” -Force -ErrorAction SilentlyContinue

Stop-Service -Name “AteraAgentHelper” -Force -ErrorAction SilentlyContinue

# Kill lingering processes

Write-Output “Killing Atera processes…”

Get-Process -Name “AteraAgent*” -ErrorAction SilentlyContinue | Stop-Process -Force

# Uninstall via MSI if registered

Write-Output “Checking for MSI uninstall entry…”

$msi = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like “Atera*” }

if ($msi) {

    $msi.Uninstall()

}

# Remove leftover folders

Write-Output “Removing leftover directories…”

$paths = @(

    “C:\Program Files\Atera Networks\AteraAgent”,

    “C:\Program Files (x86)\Atera Networks\AteraAgent”,

    “C:\ProgramData\Atera Networks\AteraAgent”

)

foreach ($path in $paths) {

    if (Test-Path $path) {

        Remove-Item -Path $path -Recurse -Force -ErrorAction SilentlyContinue

    }

}

# Remove registry keys

Write-Output “Cleaning registry entries…”

$regPaths = @(

    “HKLM:\SOFTWARE\ATERA Networks”,

    “HKLM:\SOFTWARE\WOW6432Node\ATERA Networks”,

    “HKLM:\SYSTEM\CurrentControlSet\Services\AteraAgent”,

    “HKLM:\SYSTEM\CurrentControlSet\Services\AteraAgentHelper”

)

foreach ($reg in $regPaths) {

    if (Test-Path $reg) {

        Remove-Item -Path $reg -Recurse -Force -ErrorAction SilentlyContinue

    }

}

Write-Output “Atera agent removal complete. A reboot is recommended.”