Forcibly terminates a Windows process by its name or ID and waits for it to exit. By default it does not throw errors: if the process is not found or cannot be terminated, the activity continues silently; to get an error, turn on ThrowException.
⬅️INPUT
Parameter | Type | Required | Description |
|---|
ProcessName
| String
| ❌ No | Name of the process to terminate, without extension (e.g. notepad). All processes with this name are terminated. Either ProcessName or ProcessId must be set; both cannot be set at the same time. If no process with this name is running, an error occurs. |
ProcessId
| Int32
| ❌ No | ID (PID) of the process to terminate; 0 counts as not set. Either ProcessName or ProcessId must be set. If no process with this ID is running, an error occurs. |
AllUsers
| Boolean
| ❌ No | If True, matching processes in all Windows sessions are terminated. Default: False; only processes in the session the robot runs in are terminated, others are skipped without an error. |
⬇️MISC
Parameter | Type | Default | Description |
|---|
ThrowException
| Boolean
| False
| If True, errors that occur (name and ID empty, process not found, termination failed) cause the activity to fail. If False, errors are ignored. |