Skip to main content

Windows Agent | GUID Conflicts & Clean Reinstall Guidance (v5.3.0+)

Agent version 5.3.0

Updated today

Overview πŸ’₯

Starting with Liongard Agent version 5.3.0+, the Windows agent uses registry-based GUID identification to assign a unique and persistent Machine ID to each endpoint.

This improves agent stability and identity tracking β€” but in environments with cloned machines or improper reinstalls, it can lead to:

  • Agent overwrites or collisions

  • Duplicate or incorrect agent associations

  • Inspectors reporting from the wrong machine

This article explains:

  • How the GUID logic works

  • When a clean reinstall is required

  • How to safely handle cloned machines

  • How to prevent agent identity conflicts


How GUID Identification Works πŸ€”

From version v5.3.0+, the agent generates and stores a Machine ID in the Windows registry during installation.

πŸ“ Registry Locations

HKEY_LOCAL_MACHINE\SOFTWARE\Liongard\LiongardAgent\MachineID
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Liongard\LiongardAgent\MachineID

πŸ” Key Behavior

  • Machine ID is generated at install time

  • Persisted across:

    • Reboots

    • Service restarts

  • Used as the primary identity of the agent in Liongard

⚠️ Important Limitation

Registry-based GUID logic applies ONLY to fresh installs

  • ❌ Upgrades β†’ Do NOT generate a new Machine ID

  • ❌ Repairs β†’ Do NOT fix incorrect Machine IDs

  • βœ… Fresh installs β†’ Generate a new, correct Machine ID


When a Clean Reinstall is Required 🧐

You must perform a full uninstall + reinstall if any of the following occur:

  • Agent installation failure

  • Agent linked to the wrong environment

  • Incorrect agent name or identity

  • Duplicate agents appearing in Liongard

  • Suspected Machine ID conflict

  • Environment switching during setup

❌ What NOT to Do

Do NOT use Repair or Upgrade in these scenarios

Why?

  • Existing Machine ID remains unchanged

  • Conflict persists

  • Agent may continue overwriting another device


Clean Reinstall Steps πŸ§‘β€πŸ«

Follow these steps to safely reset the agent identity:

1️⃣ β€” Uninstall Existing Agent

Use:

  • Add/Remove Programs & Feature on windows, or

  • Your RMM tool, or

  • Follow our guide

2️⃣ β€” Verify Complete Removal

Ensure:

  • Liongard Agent service is stopped

  • Installation directory is removed

3️⃣ β€” Install Latest Agent (v5.3.0+)

  • On Liongard, navigate to Admin β†’ Agents β†’ Download Agent Installer β†’ Windows

  • Deploy using your preferred method

  • Ensure correct environment is selected

4️⃣ β€” Verify in Platform

In Liongard:

  • Confirm agent appears:

    • Under correct environment

    • As a unique device

    • Without overwriting others

Post-Install: Remap Inspector Triggers (Optional) πŸ”„

If the old agent had inspectors assigned:

βœ” Recommended Action

🧠 Why This Matters

  • Prevents inspection gaps

  • Ensures continuity of monitoring

πŸ—‘οΈ Cleanup

After verification:

  • Delete old agent record

  • Keep environment clean and accurate


Cloned Machine Warning 🚨 (Critical)

Cloning a machine with the Liongard agent already installed can result in multiple devices sharing the same Machine ID

This causes:


How to Prevent GUID Conflicts on Cloned Machines 🀩

Before deploying the agent on cloned systems, follow ONE of the methods below:

Option A β€” Exclude Registry Keys (Best Practice)

During imaging or cloning, exclude the following registry paths:

HKEY_LOCAL_MACHINE\SOFTWARE\Liongard\LiongardAgent\MachineID
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Liongard\LiongardAgent\MachineID

βœ” Ensures new Machine ID is generated on install

Option B β€” Delete Registry Keys After Cloning

On the cloned machine:

  1. Open Registry Editor (regedit)

  2. Navigate to the paths above

  3. Delete both MachineID entries

  4. Install the agent

What Happens If You Skip This?

Both machines will share the same Machine ID

Resulting in:

  • Agent identity collision

  • Devices overwriting each other

  • Incorrect inspection data

  • Manual cleanup required


Visual Flow 🧭

Clone Machine (Agent Installed)
β”‚
β”œβ”€βŒ No Action Taken
β”‚ ↓
β”‚ Same MachineID
β”‚ ↓
β”‚ Agent Collision / Overwrite
β”‚
β””β”€βœ… Remove/Exclude Registry Key
↓
New Agent Install
↓
Unique MachineID
↓
Stable Agent Identity βœ…

When to Contact Support 🦁

Reach out to Liongard Support if:

  • Agents continue overwriting after reinstall

  • Duplicate Machine IDs persist

  • Multiple environments are affected

  • Registry cleanup did not resolve the issue

Provide:

  • Agent name(s)

  • Environment details

  • Confirmation of reinstall steps

  • Registry key status

  • Agent Version

  • Agent Logs


Key Takeaway πŸ’‘

Agent identity is now tied to a registry-based Machine ID β€” and must be handled carefully in cloned environments.

βœ” Always use fresh installs when identity issues occur
βœ” Never rely on repair/upgrade for GUID-related problems
βœ” Clean registry handling is critical in imaging workflows


Summary πŸš€

  • Liongard Agent v5.3.0+ uses registry-based Machine IDs

  • Only fresh installs generate new IDs

  • Cloned machines can cause GUID conflicts

  • Proper registry handling prevents agent overwrites

  • Clean reinstall is the only reliable fix for identity issues

Did this answer your question?