- 入门指南
- 了解 UiPath Robot
- 安装要求
- 为 Unattended 自动化任务安装机器人
- 为 Unattended 自动化配置机器人
- 为 Attended 自动化安装机器人
- 为 Attended 自动化配置机器人
- 集成
- 监管
- 故障排除
机器人管理员指南
Windows 会话已锁定
描述
机器人收到错误“由于 Windows 会话已锁定,无法将目标应用程序置于前台”。
潜在问题
不必要地运行空闲的远程桌面服务会话、系统重新启动后自动登录和锁定最后一个交互式用户,或者激活任务栏上的新闻和兴趣。
解决方案
确保禁用或未配置以下组策略的设置:
- 新闻和兴趣
- 会话时间限制(在“远程桌面服务”>“远程桌面会话主机”下找到)
- Windows 登录选项
为此,请执行以下操作:
- 打开“本地组策略编辑器”。
- 导航到“计算机配置”>“管理模板”>“Windows 组件”。
- 查找相应的策略设置并验证状态是“未配置”还是“已禁用”:
- 对于新闻和兴趣,查找“在任务栏上启用新闻和兴趣”设置。
- 对于会话时间限制,查找“为活动但空闲的远程桌面服务会话设置时间限制”设置。
- 对于 Windows 登录选项,查找“登录并在重新启动后自动锁定最后一个交互式用户”设置。
如果问题仍然存在,请导出以下文本文件并将其发送到 UiPath 支持团队:
- 打开“本地组策略编辑器”。
- 导航到“计算机配置”>“管理模板”>“Windows 组件”。
- 选择以下策略:
- 连接(在“远程桌面服务”>“远程桌面会话主机”下找到)
- 会话时间限制(在“远程桌面服务”>“远程桌面会话主机”下找到)
- 对于每个策略,从功能区中选择“操作”,然后使用
.txt格式导出设置。
先前的登录策略会阻止创建机器人会话
描述
在 Unattended 场景中,由于会弹出报告登录信息的安全窗口,机器人无法登录。因此,作业将失败,并显示以下错误消息:“无法启动执行程序。指定的登录会话不存在。该流程可能已经终止。(0x80070520)”。
潜在问题
“在用户登录期间显示有关先前登录的信息”策略可防止创建机器人会话。 启用此策略后,机器人无法启动登录会话,进而导致显示上述错误消息。
解决方案
- 通过开始菜单或使用命令提示符运行
gpedit.msc,在受影响的计算机上打开“组策略编辑器”。 - 转到“计算机配置” > “管理模板” > “系统” > “登录”。
- 找到标题为“在用户登录期间显示有关先前登录的信息”的策略。
- 将此策略设置为“禁用”。
- 禁用该策略后,请确保应用更改。您可能需要使用命令提示符运行
gpupdate /force,或重新启动受影响的计算机。 - 测试机器人是否能够成功登录,而不会出现错误。
Troubleshooting session fails on Entra ID-joined machines
描述
After enabling a troubleshooting session in Orchestrator for an unattended Robot (Service Mode) on an Entra ID (Azure AD)-joined machine, Assistant does not display the processes available to the Robot user. The process list remains empty even though the Robot is connected and runs jobs normally.
潜在问题
Entra-joined machines require the unattended robot credentials in Orchestrator to use the azuread\upn format so the Robot can create a Windows session. However, the troubleshooting session sends the Windows username in NetBIOS format (domain\username). Because the formats do not match, Orchestrator does not recognize the session, and Assistant cannot retrieve the available processes.
解决方案
In Orchestrator, change the unattended robot credentials from azuread\upn to domain\username format.
The domain\username format works for Entra-joined machines only after at least one job has been executed under that user using the azuread\UPN credentials. A manual RDP connection with the same user does not satisfy this requirement. After the first job completes, you can switch to domain\username to enable troubleshooting sessions.