How to stop a specific Java process on Windows started using Task Scheduler?
<p>I have a batch file, which runs a Java process. This batch file is scheduled for running at specific time using a windows Task Scheduler. The task is scheduled with following option selected "run even when user is logged or not".</p>

<p>I would like to stop the java process at a specific time. There are multiple Java processes on the system. So I cannot use <code>taskkill</code> with <code>/t /im (imagename)</code>. I tried using <code>taskill /t /fi (window title)</code> to stop. But this option works only when "run only when user is logged on" is selected for Java process. In my case the Java process needs to be run even when user is not logged on.</p>

<p>Can someone please guide me in how to stop the Java process?</p>