When starting a JakartaEE application (Payara 6 on JDK 11) via Windows Server Task Scheduler, the process starts fine and with the correct user but is not visible in VisualVM.
After running the same command (batch file) manually, the process is visible in VisualVM.
What are the differences between running the batch file manually and running it from task scheduler? Is there a way to make the process visible to VisualVM?
ChatGPT suggested looking into User Context and Session Isolation but I could not make it work.