Kill Process Procedure For Specific User

How to kill processes for a specific user?

  1. Get the current user name by Environment.UserName. Store it in a variable
  2. Get the List of all Processes running under current user
  3. Use a "ForEach" activity and loop through all process names
  4. Use an "If" activity inside the loop and check if the below condition is met or not for the "If" activity
  5. processName=“YourProcessName” AND UserName= Environment.UserName
  6. If the condition is met then use "Kill Process" activity inside the "Then" block of "If" activity to kill the process.