--- title: "Machine already belongs to another ControlUp organization" slug: "computer-already-belongs-to-another-controlup-organization" updated: 2025-09-02T08:26:58Z published: 2025-09-02T08:26:58Z canonical: "support.controlup.com/computer-already-belongs-to-another-controlup-organization" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.controlup.com/llms.txt > Use this file to discover all available pages before exploring further. # Machine already belongs to another ControlUp organization ## Issue: ControlUp Agent Error Failed to open connection to remote agent. Agent error 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: 1. Remote connect to the agent machine and stop the cuAgent service. 2. Delete the following registry key: `HKLM\Software\Smart-X\ControlUp\Agent` 3. From the Real-Time Console > **Agent Settings** > click **Copy** under **Agents Authentication Key**. 4. From the agent machine, under `HKLM\SOFTWARE\Smart-X\ControlUp\Agent\Communication`, add the copied Authentication Key to the `AuthKey` registry key. ![HKLMOFTWAREmart-XontrolUpgentommunication key](https://cdn.document360.io/098100b7-b9da-4bea-b4b9-017140ab863e/Images/Documentation/image-MMNVX1B0.png) 5. 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* ![ServerList notepad](https://cdn.document360.io/098100b7-b9da-4bea-b4b9-017140ab863e/Images/Documentation/image%281%29.png) 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 } ```