- Print
- DarkLight
- PDF
Machine already belongs to another ControlUp organization
- Print
- DarkLight
- PDF
Issue: ControlUp Agent Error
Failed to open connection to remote agent.
This machine (MachineName) only accepts connections from organization (OrgNameA)
Solution
A managed machine can only belong to a single ControlUp organization at a time.
If you no longer have access to the ControlUp organization from which the agent was deployed, disconnect this machine using the following steps:
- Remote connect to the agent machine and stop the cuAgent service.
- Delete the following registry key:
HKLM\Software\Smart-X\ControlUp\Agent
- From the Real-Time Console > Agent Settings > click Copy under Agents Authentication Key.
- From the agent machine, under
HKLM\SOFTWARE\Smart-X\ControlUp\Agent\Communication
, add the copied Authentication Key to theAuthKey
registry key.
- Start the cuAgent service.
If you have multiple machines with this issue, you can create a text file with all machines and save it on a machine from which you have access to those agent machines. In our example, we use ServerList.txt
As an administrator, run the following PowerShell script. As part of this script, it connects to all machines based on the text file, stops the cuAgent service, deletes all agent-related registry keys, and restarts the service.
$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
}