Computer already belongs to another ControlUp organization
  • Dark
    Light
  • PDF

Computer already belongs to another ControlUp organization

  • Dark
    Light
  • PDF

ControlUp Agent Error

Failed to open connection to remote agent.

Agent error

This machine (‘COMPUTERNAME ‘) only accepts connections from organization OrgNameA

To change this, sign in to organization OrgNameA and uninstall the ControlUp agent from this machine. Then, log back into organization OrgNameB and add the machine.

Possible Solution

A managed computer can only belong to a single ControlUp organization at a time.
If you no longer have access to the original ControlUp organization, perform these steps to remove the computer from the old organization:

  1. Log into the target computer via RDP.
  2. Stop the ControlUp Agent service.
  3. Delete the following Registry key:
HKLM\Software\Smart-X\ControlUp\Agent
  1. Start the ControlUp Agent.

If you face this problem on multiple agent machines, create a new text file (for example, ServerList.txt) and save it on a machine from which you have access to all problematic agent machines.

image.png

Run the following PowerShell script as an administrator. This script connects to each of the machines, stops the agent service, delete all agent-relevant registry keys and starts the agent service again.

$ServerList = Get-Content -LiteralPath c:\tmp\ServerList.txt
Foreach ($i in $ServerList) {
sc.exe \\$i stop cuagent
reg.exe delete \\$i\HKLM\Software\Smart-X\ControlUp\Agent /va /f
sc.exe \\$i start cuagent
}  

Was this article helpful?