How to close all Open Applications After RDP Login in Citrix Automation Using UiPath

Hi, In my citrix automation whenever i login in to RDP, I need to close all the applications which is opened, how to do?

Hi @Mayur_N

after logging into rdp, use the get processes activity to list running applications. filter the processes you want to close by name. then use kill process in a loop to close each application.

Happy Automation

Hi @Mayur_N

To close all open applications after RDP login in UiPath:

  1. Iterate and Close Windows:
  • Use Find Elements (selector: <wnd app='*' title='*' />) to get all open window UiElements.
  • Use a For Each loop (TypeArgument: UiElement) to go through each found window.
  • Inside the loop, use Close Application activity targeting the current UiElement. Set ContinueOnError to True.
  • (Optional but recommended): Add Element Exists for “Save?” prompts and Click “Don’t Save”/“No” if found.
  1. Forceful Kill (Fallback):
  • Add Kill Process activities for common application process names (e.g., excel.exe, chrome.exe).
  • Set ContinueOnError to True.