Search for a proccess, if it's running, close it?

4 posts in this topic

AdamBrown 0

I am wondering weather I can search for a processes, and if found close it.

The issue i am experiencing is:

Users RDP into a server, the servers Console session has two applications running, Outlook and a web calender Integrator. Currently these applications are set as start up items. When the user logs in via RDP, these apps start automatically, (obviously). If these applications are running twice, it can cause issues with the system. I want to be able to search for the processes, and if they are running, close them. Equally, Is it possible to do the reverse for the console session (if the application is _not_ running, start it?)