We want to use Kill Process to terminate Internet Explore. This one works fine on single Desktop, but failed on server where multiple developers are working in concurrent mode.
Our case is a bit special one.
We had deployed a development environment as below:
Windows server 2016
Multiple developers login at the same time, with different username/password
Multiple developers are developing robots at the same time, may be some of them opening IE.
When we launch a very simple workflow with Kill Process, it performed as below:
Success with killing all “iexplore” process of current user
It also throws exception: System.ComponentModel.Win32Exception
Please update you Dotnet framework in your machine and try again.
Supported Versions
Operating System
Windows 7 update KB 2533623
Window 7 N update KB 968211
Windows 7 SP1 Update for Universal C Runtime
Windows 8.1
Windows 8.1 N Media Feature Pack KB 2835517
Windows 10
Windows 10 N Media Feature Pack KB4039813
Windows Server 2008 R2 update KB 963697 and the Desktop Experience feature
Windows Server 2012 R2
Please note that Windows Server 2012 R2 Standard and Datacenter require the Essential experience role and Essentials Media Pack. For more information, see the following link.
Windows Server 2016
Citrix environments (!)
@Uemoe and @aksh1yadav:
We had tried the method you mentioned (i.e: used activity GetProcessesByName), but we received another error message. This time, UiPath does not close any process at all. Please refer to below images for more information.
We had not received any message related to “The name of the machine changes every time it is spawned or the user logs in.”
We had not received issue related to “The licensing information is not persistent;”
Further more, how can we know that we are having problem with “The licensing information is not persistent;”
We are having multiple dotNet framework on our development PC, the highest version is 4.0
Could you please help to confirm that, upgrade to “.NET Framework minimum: 4.5.2” would solve issue of killing process for our case?
It’s always better have recommended version of framework in place.
But try to use try-catch or just ContinueOnError = True for kill process activity. If you able to kill you only iexplorer process we will know that problem was the just in system rights to do it.
Actually maybe my solution didn’t solve problem of retrieving current user processes.
I remembered I have problem with IE, but I send to you code with acrobat, and for acrobat it less likely to get situation when other user on server is running at same time acrobat.
I am also facing same issue, till yesterday bot was killing the iexplore but today I started getting error as unable to kill iexplor, Access denied. I ran with admin account and tried all the steps given above but then also that issue is coming.
Hi @aksh1yadav,
Can you please explain what does the user access have to do with killing process.
Lets suppose if bot running on a particular user does not have admin rights it will not be able to kill process gracefully?