How to deactivate AgentP for Windows without using the user interface

In this topic, you will learn how to deactivate AgentP for Windows if the Deactivate button is disabled in the user interface due to a Portnox Cloud setting.

If you need to deactivate AgentP for troubleshooting purposes, but the Deactivate button is disabled in the user interface and you do not want to make the button available globally by changing a Portnox Cloud setting, you can deactivate AgentP for Windows through PowerShell or the command line (cmd).

  • PowerShell: Copy and paste the following commands into PowerShell with elevated privileges.
    Remove-ItemProperty "hklm:\SOFTWARE\WOW6432Node\Portnox AgentP\" -Name State
    Restart-Service PortnoxAgentP
  • Command Prompt: Copy and paste the following commands into a Command Prompt with elevated privileges.
    Note:
    This method can be used remotely. Replace computer_name with the name of the local or remote computer.
    reg.exe delete "\\computer_name\hklm\SOFTWARE\WOW6432Node\Portnox AgentP" /v State /f
    sc.exe \\computer_name stop PortnoxAgentP
    sc.exe \\computer_name start PortnoxAgentP