Get Processes
UiPath.Core.Activities.GetProcesses
Gets the list of all running processes on the current machine.
note
The list of processes returned may vary depending on the operating system and the user account running the robot. On Linux and macOS, you may receive a smaller list compared to Windows due to operating system permission restrictions.
Properties
Output
- Processes - A collection of
Processobjects representing the running processes on the current machine.
Common
- DisplayName - The display name of the activity.
- ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
note
If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Platform-specific behavior
Windows environment
When running on Windows:
- Returns all processes running on the system, regardless of which user started them.
Cross-platform environment
When running on Linux or macOS:
- Returns only the processes that the robot user has permission to see.
- If the robot runs as a regular user, it will only see processes owned by that user.
- If the robot runs with administrative/root privileges, it will see all processes on the system.
Example of using the Get Processes activity
Here you can see how the Get Processes activity is used in an example that incorporates multiple activities.