Understanding the Use of 'Target' Property in the 'Kill Process' Activity

What are the Different Options in the 'Target' Property of the Kill Process Activity Used For?

Overview of 'Target' Property

The 'Target' Property in the Kill Process Activity offers four distinct options: All, OnlyCurrentSession, OnlyCurrentUser, and OnlyCurrentDesktop. These options facilitate customizability and precision, according to different usage and environments.

image.png


Understanding Each Option

All:

This option allows for the termination of all sessions and all user processes. Essentially, it targets all processes running on the same machine regardless of the user or the session in which they are running.

OnlyCurrentSession:

This option only kills processes for the current session. For instance, if the Picture in Picture (PiP) feature is being utilized and a process is running in both a PiP session and a user session, using this option will terminate only the processes in the PiP session. This feature makes it a valuable choice for managing processes within specific sessions.

OnlyCurrentUser:

This option suppresses processes in all sessions of the current user while processes initiated by other users remain unaffected. In simpler terms, it only targets processes started by the logged user. This option proves useful in multi-user environments where certain processes need to be managed without affecting those initiated by other users.

OnlyCurrentDesktop:

This option forces the termination of processes only if they belong to the current desktop. Meaning that only processes running on the active desktop are targeted. It becomes handy in environments with multiple desktops or virtual desktops, making the process management more efficient.