Hi All, Im using citrix application if any system exception occurred i need to close totally 1st i used the kill all applications it worked for days then it failed now i used task manager to end the task there also same and then I tired to automate most of the system exceptions for few is closing for few it not closing. Is there any way even if any error appeared it should close the application.
Encapsulate whole code with Try catch activity. In Catch block create a catch called system.exception. Inside of it insert Close application activity to close the application.
If any exception occured in Try block the bot go to catch block in this we have close application activity it will close the citrix environment.
Hope it helps!!
i tired that its not working any other approaches
Don’t just kill the Citrix processes. That leaves the sessions going on the Citrix server and when you try to log in again it’ll reconnect you to that same session, and even the apps you had open will still be open.
What you need to do is log off the Citrix session. You can do this from the command line:
Assign CommandToRun:
"""C:\Program Files (x86)\Citrix\ICA Client\SelfServicePlugin\SelfService.exe"" -logoffSessions"
Then use Invoke Powershell:


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.