Skip to main content

Windows Agent | Agent Fails to Upgrade or Uninstall

Updated over a week ago

Overview πŸ’₯

In some scenarios, a Liongard Agent may fail to automatically upgrade or uninstall. This can occur due to permission issues, disabled schedulers, endpoint security controls, or legacy installation methods.

This article explains:

  • πŸ” Why agent upgrades or uninstalls fail

  • βš™οΈ How Liongard agent auto-updates work

  • πŸ§ͺ Step-by-step troubleshooting

  • πŸ—‘ Proper uninstall methods by platform

  • πŸ“‚ Where to collect logs for support


Why Agent Upgrade or Uninstall Issues Happen πŸ€”

The most common causes include:

Cause

Description

❌ Incorrect service account

Agent installed using a user or domain account

β›” Scheduler blocked

Auto-update task removed or blocked

πŸ›‘ EDR / AV interference

Security tools prevent updates or MSI execution

πŸ“¦ Missing MSI

Original installer unavailable during uninstall

πŸ”„ Legacy install method

Older PowerShell-based installs


How Liongard Agent Auto-Updates Work

When installing the Liongard Agent with auto-update enabled:

  • πŸ•› A scheduled task is created on Windows

  • ⏱ Runs daily at midnight

  • πŸ”Ž Checks for a newer agent version

  • ⬇ Automatically downloads and installs updates

  • 🧠 Requires local SYSTEM permissions

βœ… No user interaction is required
❌ If permissions are insufficient, the update silently fails


Important: Supported Service Account (Windows) πŸ–₯️

🚨 Liongard Agents must run as LOCAL SYSTEM

Running the agent under a custom service account or domain user is no longer supported.

Why SYSTEM Is Required

  • βœ” Always present (no password rotation)

  • βœ” Not impacted by user logouts

  • βœ” Least-privilege, local-only permissions

  • βœ” Required for scheduled updates

  • βœ” Prevents domain policy conflicts

🧯 Newer MSI installers no longer allow custom service accounts. All new installations default to SYSTEM by design


Step-by-Step Troubleshooting πŸ§‘β€πŸ«

1️⃣ Verify Agent Version

  1. Go to Admin β†’ Agents

  2. Locate the affected agent

  3. Confirm agent is Up To Date

2️⃣ Check Agent Status

  • Online but outdated β†’ Auto-update likely blocked

  • Offline β†’ Inspections will fail and upgrades will not occur

ℹ️ Self-Managed agents appear in inspector dropdowns even if offline, but inspections will show Agent Issues

3️⃣ Verify Auto-Update Scheduler (Windows)

  1. Open Task Scheduler

  2. Navigate to: Task Scheduler Library

  3. Look for: Liongard Agent Updater

Status

Action

Task exists

Review last run result

Task missing

Reinstall agent

Task blocked

Check EDR / AV logs

πŸ” Removal events are often logged in Windows Event Viewer

4️⃣ Check for Security Software Interference

Auto-updates commonly fail when:

  • EDR deletes the scheduler

  • Antivirus blocks MSI execution

  • Firewalls block outbound update traffic

πŸ“Œ Review endpoint security logs for:

  • Task deletion

  • MSI execution blocks

  • Process termination


Uninstalling the Liongard Agent πŸš€

⚠️ Uninstalling the agent does NOT remove it from the Liongard UI

βœ… Option 1: Uninstall via MSI (Recommended)

🧠 Best method if you still have the original MSI. Run the same MSI version used for installation:

  • Select Uninstall when prompted

βœ… Option 2: Windows Add / Remove Programs

  1. Open Control Panel

  2. Select Programs β†’ Uninstall a program

  3. Right-click Liongard Agent

  4. Select Uninstall

Reboot is NOT required. Click Continue if prompted.

βœ… Option 3: Command Line (Silent)

msiexec /x LiongardAgent-lts.msi /qn

πŸ”„ Legacy PowerShell-Installed Agents

If installed using older PowerShell scripts:

  1. Run the latest MSI to upgrade

  2. Run the MSI again

  3. Select Uninstall

This migrates the agent under MSI control before removal.


Remove Agent from Liongard Platform 🫧

After uninstalling locally:

  1. Go to Admin β†’ Agents

  2. Click the β‹― menu next to the agent

  3. Select Delete

🧼 This cleans up orphaned agents from the platform.


Collecting Agent Logs for Troubleshooting πŸ‘¨β€πŸ’»

Type

Location

Main logs

C:\Program Files (x86)\LiongardInc\LiongardAgent\logs

Service log

C:\Program Files (x86)\LiongardInc\LiongardAgent\AgentSVCLog.txt

Event logs

Check Windows Event Viewer under 'Application and Service Logs' for 'LiongardAgentLogs'


When to Contact Support 🦁

Contact Liongard Support if:

  • Agent fails to upgrade after reinstall

  • Scheduler keeps disappearing

  • Logs show unexplained permission errors

πŸ“Ž Include:

  • Exact issue description

  • Agent version

  • OS

  • Relevant logs

  • Screenshot of agent status


Summary 🀩

  • Liongard agents auto-update using a scheduled updater

  • Agents must run as LOCAL SYSTEM

  • EDR / AV tools are the most common blockers

  • Missing schedulers require reinstallation

  • Uninstall methods vary by OS

  • Logs are critical for deeper troubleshooting

Did this answer your question?