Task scheduler is executing a batch file, return code is also 0 but the application workflow is not getting completed in Windows 2016.

Tulika.Shivani 0 Reputation points
2024-02-15T10:01:34.59+00:00

I have scheduled a batch file which runs a JAVA application using jdk 8. In scheduler, I have setup the policy as run if user is logged in or not. The ID which am using for scheduling the job has all permissions. When the batch file is running, the return code is 0 which seems a valid output for any job execution. But I am not receive the validation message post completion of job that the fulfilment is done. The same batch file is running successfully from windows 2012 R2 server with same ID and other settings but in Windows 2016, this issue is coming. Screenshot 2024-02-15 at 3.25.31 PM

Screenshot 2024-02-15 at 3.28.44 PM

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,425 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,564 questions
0 comments No comments
{count} votes