4
1
After creating a scheduled task after following this Superuser question, I can successfully start a service without the UAC prompt. The options selected were:
Start a program
Program\script
=C:\Windows\System32\net.exe
Add arguments (optional)
=start "SERVICE-NAME"
Then in a batch file I call schtasks /run /tn TASK-NAME
. After testing this, I created a shortcut to the batch file and set the Run
option to Minimised
.
This all works except that when the actual service is started, a maximised command prompt window pops up with the single line The SERVICE-NAME service is starting
. This then disappears after a few seconds.
How do I tell Task Scheduler to start the target program silently (or minimised) without the pop-up? If the pop-up command prompt were minimised that would be fine.
1
On the scheduled task, be sure the option
– Pimp Juice IT – 2017-10-03T04:16:30.160Run whether user is logged on or not
is selected as well which I didn't see mentioned in the linked post... check here for common troubleshooting guidance as well: https://superuser.com/questions/1005192/problems-scheduling-a-task-on-windows7/1005216#1005216