Hello
In Windows server 2019, there are two application running. One application is requested to restart server weekly to release cache. This one can be set on weekend to run automatically through Task Schedule. It works.
Another applicatin is requested to run all the time. So, create one more Task Schedule to run it automatically without login after server restart server. It doesn't work until we login windows server.
Kindly advise.
Thanks
Abhishek YadavPosted Apr 26, 2024, 6:57 AM
If you are not familiar with the Task Scheduler, you can also try creating a simple batch file that runs the second application and configure it to run at startup using other methods such as adding it to the Startup folder or using Group Policy. This can be a quick workaround while you troubleshoot the Task Scheduler issue.
Remember to test the batch file to ensure it runs correctly and launches the second application when the server restarts. If the batch file runs successfully, you can use this as a temporary solution until you are able to resolve the Task Scheduler issue.
sjsjPosted Apr 26, 2024, 6:16 AM
Hello
All u mentioned I set it before. Please refer to my previous email. But the problem still remian.
Really hope to get the solution from this webwite.
Thanks
sjsjPosted Apr 19, 2024, 9:25 AM
Hello Jayraj Chhaya
Thank you
sjsjPosted Apr 17, 2024, 7:42 AM
Hello Jayraj Chhaya
The following 4 items you mentioed are all set correctly. Refer to the attached.
But application didn't start automatilly after server restarted.
Until, login the Windows server and server manger console appear, then followed by application windows appear.I need application windows run automatically without login to the server.
Jayraj ChhayaPosted Apr 16, 2024, 9:12 AM
The error code 2147942402 indicates "The system cannot find the file specified." This error commonly occurs when the Task Scheduler is unable to locate the file path specified in the task action.
To resolve this issue:
By following these steps and ensuring the correct configuration of the Task Scheduler task, you should be able to run the application automatically after a server reboot without the need for manual login.
sjsjPosted Apr 16, 2024, 9:05 AM
Hello Jayraj Chhaya
Thank you for your help.
All you mentioned have been included. Here found the error message.
Task Scheduler failed to launch action "%APPDATA%\Microsoft\Windows\Start" i
n instance "{c3278866-ee05-414e-95be-c64fd51b0044}" of task "\CCNFTP".
Additional Data: Error Value: 2147942402.
Using domain administrator to setup.
Please advise. Thanks
Jayraj ChhayaPosted Apr 16, 2024, 6:52 AM
When Task Scheduler fails to run an application after a server reboot, it might be due to the application requiring user interaction or specific permissions that are not available during system startup. To resolve this issue, you can try the following steps:
sjsjPosted Apr 16, 2024, 6:30 AM
Hello Makwana
Thank you for your post.
Your step on 1, 3, 4, 5, I set it before . But, it doesn't make sense.
Step 2 I just make it and tested. the applicatin didn't startup until I login to the server.
Kindly advise.
Naimish MakwanaPosted Apr 16, 2024, 4:17 AM
It sounds like you’re having trouble getting an application to start automatically after a server restart on Windows Server 2019. This is a common issue and can often be resolved by adjusting the settings of the Task Scheduler or the application itself.
Here are a few steps you can take:
Check the Task Scheduler settings: Make sure the task is set to run whether the user is logged in or not. You can find this setting in the “General” tab of the task properties.
Run with highest privileges: In the same “General” tab, check the box that says “Run with highest privileges”. This allows the task to run with administrative privileges, which some applications require to start properly.
Check the application settings: Some applications have settings that control whether they start when the system starts. Check the documentation for your application to see if this is the case.
Use the “Startup” folder: If the application doesn’t need to start at a specific time, but just needs to start when the server starts, you could add a shortcut to the application in the “Startup” folder. This folder is located at
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp.Check for application errors: If the application is still not starting, it may be encountering an error. Check the Event Viewer for any related error messages.
Thanks