在 macOS 中安装或卸载自动登录插件
- Updated: 2025/07/07
在您的 macOS 设备上安装 Bot Agent 时,安装程序中包含 AutoLogin.bundle 和 autologinconfig 实用程序,可用于启用无人值守 Bot Runners 的自动登录。
- AutoLogin.bundle - /Library/Security/SecurityAgentPlugins
- autologinconfig - /AutomationAnywhere/BotAgent
安装并启用自动登录
确保在启动节点管理器服务之前执行以下命令。
- 在您的 macOS 设备上,以管理员身份打开 Terminal 实用程序。
- 运行 autologinconfig 实用程序。
例如,sudo ./autologinconfig。
此 macOS 设备上的无人值守 Bot Runners 已启用自动登录。
验证插件是否激活
选择以下方法之一,验证您的 macOS
Bot Runner 设备是否已启用自动登录:
-
登录屏幕
如果启用了自动登录插件,您 macOS 设备上的登录屏幕现在将包含由 Automation Anywhere Inc. 提供支持。 查看以下示例图像:
注: 如果登录屏幕上未显示由 Automation Anywhere Inc. 提供支持,表示自动登录未启用或激活。 -
终端命令
在 Terminal 实用程序中运行以下命令:
-
security authorizationdb read system.login.console
如果自动登录插件激活,结果中将包括 <string>Autologin:login</string>。
-
security authorizationdb read system.login.console
如果自动登录插件激活,结果中将包括 <string>loginwindow:login</string>。
-
security authorizationdb read system.login.console
卸载自动登录插件
- 在您的 macOS 设备上,以管理员身份打开 Terminal 实用程序。
- 使用 -u 标志运行 autologinconfig 实用程序。
例如,sudo ./autologinconfig -u。
您可以使用任何验证方法来确认 macOS 设备上的自动登录不再处于激活状态。