How to repair a corrupted AgentP installation on Windows
In this topic, you will learn how to repair a corrupted AgentP installation to restore full AgentP functionality or to enable AgentP to be uninstalled and reinstalled.
In some cases, the Portnox AgentP service cannot start or enters a continuous restart loop. This behavior usually results from a corrupted or incomplete AgentP installation, missing registry keys, or broken service dependencies. These issues can cause unstable service behavior and network connectivity problems.
Common symptoms include:
The AgentP service does not start automatically after system boot.
The AgentP service restarts repeatedly, sometimes multiple times per second, as shown in the Event Viewer.
Event Viewer or AgentP logs report missing registry keys, such as HKLM\SOFTWARE\Microsoft\IdentityStore\cache and HKLM\SOFTWARE\Microsoft\IdentityStore\identity.
Uninstall or repair attempts fail with MSI errors, for example: A program required for this install to complete could not be run.
Manually restarting the AgentP service or rebooting the device temporarily restores connectivity.
These symptoms indicate an incomplete installation, corrupted MSI registration, or missing service dependencies that prevent AgentP from initializing correctly.
The most common root causes include:
Missing, corrupted, or blocked AgentP executables or custom action files (DLL or EXE), often due to security software.
Broken or incomplete Windows Installer registration for AgentP.
An inconsistent or incompatible network filter driver installed by AgentP.
Corrupted or modified registry entries under HKLM\SYSTEM\CurrentControlSet\Services\PortnoxAgentP or HKLM\SOFTWARE\Classes\Installer\Products.
Permission or system-level issues that prevent the service from running under the expected account, such as LocalSystem.
Because of these issues, the AgentP service may fail to initialize, repeatedly restart, disrupt network connectivity, and prevent clean uninstallation or reinstallation. The following sections describe ways to repair the AgentP installation, clean corrupted MSI data, or perform a manual cleanup before reinstalling the agent.
Preconditions:
The WMI repository is functional and consistent.
Running sfc /scannow reports no system file integrity violations.
The issue persists despite system file integrity checks, indicating AgentP-specific corruption.
Repair the AgentP installation
Clean corrupted MSI entries
- Use the Microsoft Program Install and Uninstall Troubleshooter to remove broken MSI entries that prevent proper uninstall or reinstall.
- If the repair is successful, uninstall AgentP and then install the latest version.
Remove AgentP manually and reinstall it
- Follow the steps in the following topic: What to remove manually if AgentP installation failed.
- Install the latest version of AgentP.
