What to remove manually if AgentP installation failed
In this topic, you will find methods of manually removing AgentP from your operating system if installation or uninstallation has failed.
Windows
In this section, you will learn the locations of files and registry entries that you may want to remove manually if AgentP installation or uninstallation failed.
Uninstallation command
Before removing files and registry entries manually, you can try the following command in the Windows Command Prompt (cmd) to uninstall AgentP. The success of this method depends on how far the AgentP installation progressed before it failed.
wmic
product where name="Portnox AgentP" call uninstall /nointeractive
Uninstallation script
You can also try to use a custom script to completely uninstall AgentP if regular uninstallation failed:
-
Confirm that AgentP is installed:
-
Command Prompt:
wmic product where "name like '%Portnox AgentP%'" get name -
PowerShell:
Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like "*Portnox AgentP*" }
-
-
Run the following script:
-
Reboot the device.
Files for manual removal
If all other methods fail, here is a complete list of files and registry entries that AgentP creates after it’s installed so you can remove them manually.
- C:\Program Files\Portnox AgentP
- AgentP.exe
- AgentP.exe.config
- BouncyCastle.CryptoExt.dll
- Interop.NetFwTypeLib.dll
- Interop.NETWORKLIST.dll
- Interop.WUApiLib.dll
- Microsoft.Azure.KeyVault.Core.dll
- Microsoft.ServiceBus.dll
- Microsoft.WindowsAzure.Storage.dll
- NetFilterLib.dll
- Newtonsoft.Json.dll
- C:\ProgramData\AgentP
- computer-data
- C:\ProgramData\AgentP\Logs
- log.txt
- log_complete.txt
- C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Portnox
- Portnox AgentP.lnk
- C:\WINDOWS\Installer
- 50e117.msi
- SourceHash{FDA66F08-864B-4B94-8B07-C257B69E9F57}
- wix{FDA66F08-864B-4B94-8B07-C257B69E9F57}.SchedServiceConfig.rmi
- C:\WINDOWS\Installer\{FDA66F08-864B-4B94-8B07-C257B69E9F57}
- icon.ico
Registry for manual removal
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\agentp
- (Default)
- URL Protocol
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\agentp\DefaultIcon
- (Default)
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\agentp\shell\open\command
- (Default)
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\80F66ADFB46849B4B8702C756BE9F975
- AgentPFeature
- MainFeature
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\80F66ADFB46849B4B8702C756BE9F975
- AdvertiseFlags
- Assignment
- AuthorizedLUAApp
- Clients
- DeploymentFlags
- InstanceType
- Language
- PackageCode
- ProductIcon
- ProductName
- Version
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\80F66ADFB46849B4B8702C756BE9F975\SourceList
- LastUsedSource
- PackageName
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\80F66ADFB46849B4B8702C756BE9F975\SourceList\Media
- 1
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\80F66ADFB46849B4B8702C756BE9F975\SourceList\Net
- 1
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\UpgradeCodes\50A8182C3F129C242929A86AA2497310
- 80F66ADFB46849B4B8702C756BE9F975
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\AgentP_RASAPI32
- ConsoleTracingMask
- EnableAutoFileTracing
- EnableConsoleTracing
- EnableFileTracing
- FileDirectory
- FileTracingMask
- MaxFileSize
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\AgentP_RASMANCS
- ConsoleTracingMask
- EnableAutoFileTracing
- EnableConsoleTracing
- EnableFileTracing
- FileDirectory
- FileTracingMask
- MaxFileSize
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders
- C:\Program Files\Portnox AgentP\
- C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Portnox\
- C:\WINDOWS\Installer\{FDA66F08-864B-4B94-8B07-C257B69E9F57}\
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\50A8182C3F129C242929A86AA2497310
- 80F66ADFB46849B4B8702C756BE9F975
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\50A8182B3F129C242929A86AA2497320
- 80F66ADFB46849B4B8702C756BE9F975
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\50A8182B3F129C242929A86AA2497330
- 80F66ADFB46849B4B8702C756BE9F975
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\50A8182B3F129C242929A86AA2497350
- 80F66ADFB46849B4B8702C756BE9F975
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\80F66ADFB46849B4B8702C756BE9F975
- (Default)
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\80F66ADFB46849B4B8702C756BE9F975\Features
- AgentPFeature
- MainFeature
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\80F66ADFB46849B4B8702C756BE9F975\InstallProperties
- AuthorizedCDFPrefix
- Comments
- Contact
- DisplayName
- DisplayVersion
- EstimatedSize
- HelpLink
- HelpTelephone
- InstallDate
- InstallLocation
- InstallSource
- Language
- LocalPackage
- ModifyPath
- NoModify
- NoRepair
- Publisher
- Readme
- Size
- UninstallString
- URLInfoAbout
- URLUpdateInfo
- Version
- VersionMajor
- VersionMinor
- WindowsInstaller
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\80F66ADFB46849B4B8702C756BE9F975\Patches
- AllPatches
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\80F66ADFB46849B4B8702C756BE9F975\Usage
- (Default)
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
- Portnox AgentP
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FDA66F08-864B-4B94-8B07-C257B69E9F57}
- AuthorizedCDFPrefix
- Comments
- Contact
- DisplayName
- DisplayVersion
- EstimatedSize
- HelpLink
- HelpTelephone
- InstallDate
- InstallLocation
- InstallSource
- Language
- ModifyPath
- NoModify
- NoRepair
- Publisher
- Readme
- Size
- UninstallString
- URLInfoAbout
- URLUpdateInfo
- Version
- VersionMajor
- VersionMinor
- WindowsInstaller
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Portnox AgentP
- Delayed
- DelayedOption
- Mode
- State
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PortnoxAgentP
- DependOnService
- Description
- DisplayName
- ErrorControl
- FailureActions
- ImagePath
- ObjectName
- Start
- Type
- HKEY_USERS\.DEFAULT\Software\Portnox
- AgentPInstalled
- {6Q809377-6NS0-444O-8957-N3773S02200R}\Cbegabk NtragC\NtragC.rkr
- HKEY_USERS\S-1-5-21-2511969518-1776699498-4151611396-1000\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{F4E57C4B-2036-45F0-A9AB-443BCFE33D9F}\Count
- {0139Q44R-6NSR-49S2-8690-3QNSPNR6SSO8}\Cbegabk\Cbegabk NtragC.yax
- HKEY_USERS\S-1-5-21-2511969518-1776699498-4151611396-1000\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store
- C:\Program Files\Portnox AgentP\AgentP.exe
- HKEY_USERS\S-1-5-21-2511969518-1776699498-4151611396-1000\SOFTWARE\Portnox
- AgentPInstalled
macOS
In this section, you will find a script to manually remove all AgentP files if installation or uninstallation has failed.
To completely remove AgentP files from macOS, copy the code below into a script file and then run the script:
#!/bin/bash
# Define service and app names
SERVICE_NAME="AgentPX"
APP_NAME="Portnox AgentP"
APP_PATH="/Applications/$APP_NAME.app"
# Function to kill the service
kill_service() {
echo "Stopping the service: $SERVICE_NAME"
if pgrep "$SERVICE_NAME" > /dev/null; then
sudo killall "$SERVICE_NAME"
echo "$SERVICE_NAME service killed."
else
echo "$SERVICE_NAME is not running."
fi
}
# Function to uninstall the app
uninstall_app() {
echo "Uninstalling $APP_NAME"
if [ -d "$APP_PATH" ]; then
sudo rm -rf "$APP_PATH"
sudo rm -rf "/var/agentp"
sudo rm -rf "/var/agentpx"
sudo rm -rf "/private/var/root/Library/Preferences/com.portnox.agentpx.plist"
echo "$APP_NAME uninstalled."
else
echo "$APP_NAME not found at $APP_PATH"
fi
}
# Execute functions
kill_service
uninstall_app
echo "Process completed."
If you also want to remove the profile, run this script:
/usr/bin/profiles -R -p com.portnox.agentpwifi
