About
The robot service is the brain of all operations. It communicates through an inter-process communication channel with Studio, the UiPath Assistant, and Robot Command Line Interface to receive and process information, and then to provide the necessary instructions to the Robot Executor.
机器人服务同样负责将机器人检测信号发送到 Orchestrator,以传达执行状态或接收新的执行命令,进而充当 Orchestrator 和执行主机之间的代理。
执行流程的 Windows 会话由机器人服务管理和监控,同时也受机器人凭据的信任。
机器人服务可以在服务模式或用户模式下部署。主要区别如下表所示:
Action | Service Mode Robot | User Mode Robot |
---|---|---|
Attended Execution | ![]() | ![]() |
Unattended Execution (Automatic Session Management) | ![]() | ![]() 1 |
Concurrent Job Execution | ![]() | ![]() |
Single Machine - Multi-User Deployment | ![]() | ![]() |
1
仅当用户使用活动会话登录时,才可以使用用户模式机器人进行无人值守执行。
服务模式机器人服务
服务模式机器人最适合无人值守自动化场景。执行流程时,机器人执行程序会使用与注册它的用户相同的权限运行。
服务模式机器人服务:
- 为计算机上的每个用户使用 UiPath.Service.Host.exe 和其他按用户的服务 (UiPath.Service.UserHost.exe)。
- 由本地系统用户下的服务控制管理器 (SCM) 启动。
- 可以打开交互式 Windows 会话。
- 最适合无人值守的自动化场景和大规模平台部署。
- 拥有计算机管理员的权限。
- 在 Windows 服务列表中。
- 即使用户未通过启动会话登录,也可以从 Orchestrator 执行作业。
此外:
- UiPath.settings 文件安装在
%ProgramData%\UiPath
文件夹中。 - 系统默认将程序包下载至
%userprofile%\.nuget\packages
文件夹。 - 本地包保存在
%ProgramData%\UiPath\Packages
文件夹中,可在 Assistant 中使用。

A Service Mode Robot can be easily updated or converted to a User Mode Robot.
备注:
将机器人从服务模式转换为用户模式时,机器人可能无法访问原始 NuGet 包文件夹中的
.xaml
文件。如需详细了解如何解决此问题,请阅读本指南,该指南提供了此特定场景的更多详细信息。
用户模式机器人服务
用户模式机器人最适合有人值守自动化场景。此机器人会在安装它的用户下运行,并拥有与该特定用户完全相同的权限。
用户模式机器人服务:
- 仅使用 UiPath.Service.UserHost.exe,并由 Studio 或 UiPath Assistant 自动启动。
- 最适合有人值守的自动化场景。
- 拥有运行此服务的用户的权限。
- 不在 Windows 服务列表中。
- 要求用户使用活动会话登录,才能从 Orchestrator 执行作业。
此外:
- 系统会将
UiPath.settings
文件安装在%LocalAppData%\UiPath
文件夹中。 - 包将下载到
%userprofile%\.nuget\packages
文件夹中。 - 本地包保存在
%ProgramData%\UiPath\Packages
文件夹中,可在 Assistant 中使用。

A User Mode Robot can easily be updated or converted to a Service Mode Robot.
4 个月前更新