Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
3.4k views
in Windows Server by 21 22 32
edited by

In Windows Server 2019, I have created a task schedule to start a program.

Start program task schedule windows server 2019I set the task security option to "Run Whether user is logged on or not" but in this case, the task is running but the Program is not started! 

Run Whether user is logged on or not task schedule windows server 2019However, when selecting "Run only when user is logged On" the task started and the program started properly!

Why do I get this behavior and the task schedule not working as expected in Windows Server 2019?


1 Answer

1 like 0 dislike
by 163 203 401
selected by
 
Best answer

Task schedule doesn't Start Program Window in Windows Server 2019

If I got your question correctly, you are trying to start program with task schedule with Run whether user is logged on or not option but the program is not run interactively, its window doesn't pop up!

In this case, it's actually a normal behavior, when you set the "Security option" to Run whether user is logged on or not, the program will not run interactively. this option will never pops up any program window, however, you will notice that the task is running and completed based on the assigned schedule.

In this option, you have to check "Run with highest privileges"

So in your case, if you need to make the Program run interactively, you have to set the "Security option" to "Run only when user is logged on", otherwise the task will run without showing up the program window!

run only when user is logged on windows server 2019

Avoid using mapped drive path (Shared Path) for the program that you need to run. instead, you should use direct path on your local pc.

If the above doesn't work with you try to create a Basic Task!

create a basic task schedule in windows server 2019

by 21 22 32
0 0
Thanks Abu hamza for this great support
If you don’t ask, the answer is always NO!
...