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.
Run 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: superuser.com/questions/1005192/…