切换 Bot Agent 到不同 Control Room

在使用不同环境运行自动化时,请手动切换已注册设备上的 Bot Agent 以适配不同的 Control Room

先决条件

确保您拥有启动、停止和暂停权限以访问和编辑 Windows 服务。

请在以下场景中执行此任务,以手动将您的设备与不同的 Control Room 关联:
  • Control Room 处于不同的发布版本时。
  • 当在 Control Room启用切换设备设置时。

过程

  1. 从本地 Windows 任务管理器停止 Bot Agent 服务。
  2. 导航到以下文件夹: C:\Windows\System32\config\systemprofile\AppData\Local\AutomationAnywhere
  3. 可选: 删除 registration.properties 文件。
    注: 只有当您想要在其他 Control Room 环境中注册设备时才需要执行此操作。 要查看 Control Room 设备的注册位置,请打开 Registration.properties 文件并检查 Control Room URL 的值。
  4. 删除所有 .db 文件。
    例如,AA-DB.mv.db 文件。
  5. 登录到 Control Room
  6. 导航到管理 > 设备
  7. 单击连接本地设备图标。
  8. 下载并安装最新的 Bot Agent
  9. 从已更新的设备返回 Control Room 中的设备页面以检查设备状态。
    Bot Agent 安装后不会立即生成 registration.properties 文件。 它仅在用户从该设备访问 Control Room URL 时生成。 如果设备注册成功,计算机将显示为已连接,并且会在 Bot Runner 计算机上的指定位置创建 registration.properties 文件。
  10. 导航到 C:\Windows\System32\config\systemprofile\AppData\Local\AutomationAnywhere 文件夹以确保其中包含 registration.properties 文件并验证 Bot Agent 更新。