批量安装 Bot Agent 到设备:经过身份验证的代理
- Updated: 2025/04/30
如果您使用经过身份验证的代理实现 Bot Agent 与 Control Room 之间的通信,则在创建计算机映像以批量安装(或静默安装)Bot Agent 到永久或临时设备时,代理服务器的凭据不会自动保存。
过程
-
在用于创建计算机映像的虚拟机实例上安装最新的 Bot Agent(AA_INSTALL_ONLY MSI 参数设置为
True
)。 请参阅 批量安装 Bot Agent。安装 Bot Agent 后,将在 C:\Windows\System32\config\systemprofile\AppData\Local\AutomationAnywhere\autoregister 生成一个 autoregistration.properties 文件。
只有当 AA_INSTALL_ONLY MSI 参数设置为
True
时,autoregistration.properties 文件才不会生成。 - 将 autoregistration.properties 文件移动到其他位置。
-
启动 Automation Anywhere
Bot Agent Windows 服务。
注: 默认安装 Bot Agent 的路径是 C:\Program Files\Automation Anywhere\Bot Agent。
- 以管理员身份打开命令提示符。
- 输入 C:\Program Files\Automation Anywhere\Bot Agent\AADiagnosticUtility.exe -configProxy <CR_URL> 命令来配置代理服务器凭据。 请参阅 执行 Bot Agent 诊断检查。
- 输入用户名和密码。
- 输入 C:\Program Files\Automation Anywhere\Bot Agent\AADiagnosticUtility.exe -checkProxy <CR_URL> 命令以检查代理服务器到 Bot Agent 的连接。 请参阅 执行 Bot Agent 诊断检查。
- 停止 Automation Anywhere Bot Agent Windows 服务。
-
将 autoregistration.properties 文件从之前保存的位置移动到 C:\Windows\System32\config\systemprofile\AppData\Local\AutomationAnywhere\autoregister。
注: 确保在 C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\AutomationAnywhere 目录下仅存在两个文件(AA-DB 和 autoregister/autoregistration.properties)。
-
创建虚拟机映像。
使用此虚拟机映像,通过经过身份验证的代理在永久和临时设备上部署 Bot Agent,实现 Bot Agent 与 Control Room 之间进行通信。