Task Scheduler Help Needed


  1. Posts : 1,091
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       #1

    Task Scheduler Help Needed


    I am trying to setup Task Scheduler so the task would basically once every minute repeatedly on Monday-Friday from 6:15AM-1:30PM during those days. I am not sure what I am doing wrong.

    Basically, the task I want to run is:
    "C:\Users\vince\Downloads\MSMoneyQuotes v2.5.0.1\MSMoneyQuotes.exe" -r -c

    which when run as either from the Admin prompt or from a shortcut (non-admin) would show this:
    Task Scheduler Help Needed-image.png
    In Task Scheduler, this is how I have things configured:

    Task Scheduler Help Needed-image.png



    Task Scheduler Help Needed-image.png
    Task Scheduler Help Needed-image.png
    Task Scheduler Help Needed-image.png
    Task Scheduler Help Needed-image.png
    I have it on Run instance as parallel because currently, I have it running from the cmd prompt which will refetch the data every 15 minutes which cannot even be configured in the program. The Task itself is supposed to run, grab the data once and then the window will auto-close.

    Task Scheduler Help Needed-image.png

    Thanks for any help in advanced!
      My Computer


  2. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #2
      My Computer


  3. Posts : 16,968
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    If the cmd [when run normally e.g. from a cmd prompt] shows a user interface then you cannot use the Run whether user logged on or not option.

    Denis
      My Computer


  4. Posts : 1,223
    W10-Pro 22H2
       #4

    What is the error code associated with event 203? Launch failure can be related to the account the task runs under - see EventTracker KB --Event Id: 203 Source: Microsoft-Windows-TaskScheduler

    I have had trouble in the past getting tasks to run when not logged in - I had to define the username with the pc name in front, eg 'study\mnger' before entering my password in the next box:
    Task Scheduler Help Needed-task-schedule-user-ok.png
    Although you should get an error message if TS doesn't like the credentials, so I may be barking up the wrong tree. Wouldn't be the first time!
      My Computer


  5. Posts : 1,091
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
    Thread Starter
       #5

    That was what I used as a guide originally.

    - - - Updated - - -

    mngerhold said:
    What is the error code associated with event 203? Launch failure can be related to the account the task runs under - see EventTracker KB --Event Id: 203 Source: Microsoft-Windows-TaskScheduler

    I have had trouble in the past getting tasks to run when not logged in - I had to define the username with the pc name in front, eg 'study\mnger' before entering my password in the next box:
    Task Scheduler Help Needed-task-schedule-user-ok.png
    Although you should get an error message if TS doesn't like the credentials, so I may be barking up the wrong tree. Wouldn't be the first time!
    In General tab when I click on the event 203 item:
    Task Scheduler failed to launch action "C:\Users\vince\Downloads\MSMoneyQuotes v2.5.0.1\MSMoneyQuotes.exe" in instance "{2e83de07-ed36-4caa-a11f-89c83c131bb4}" of task "\MSMoneyQuotes". Additional Data: Error Value: 2147942667.

    - - - Updated - - -

    Try3 said:
    If the cmd [when run normally e.g. from a cmd prompt] shows a user interface then you cannot use the Run whether user logged on or not option.

    Denis
    There is no user interface because normally, if one did not have it run continuously, it would just show the cmd box and close immediately as seen in the detailed help for the program in question:
    Gaier Software - MSMoneyQuotes - Details and Help

    The only reason I can even see the cmd window is because I am running it from the cmd line with:
    "C:\Users\vince\Downloads\MSMoneyQuotes v2.5.0.1\MSMoneyQuotes.exe" -r -o -a -c

    is because of the -a setting which keeps the program running, otherwise it will just exit instantly after it runs:
    -a Automatically update quotes every 15 minutes as long as Money is open.
      My Computer


  6. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #6

    If you change the start program line to "c:\windows\system32\cmd.exe" like the tutorial has and keep everything else the same that you currently have, does that work? Change the frequency to 2 minutes or something also for testing.

    If that doesn't work, I would start with exactly the tutorial example (your username of course), then make small modifications to see where it starts failing.
    Last edited by steve108; 03 Nov 2021 at 00:16.
      My Computer


  7. Posts : 1,091
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
    Thread Starter
       #7

    steve108 said:
    If you change the start program line to "c:\windows\system32\cmd.exe" like the tutorial has and keep everything else the same that you currently have, does that work? Change the frequency to 2 minutes or something also for testing.

    If that doesn't work, I would start with exactly the tutorial example (your username of course), then make small modifications to see where it starts failing.
    Just tried that with the same results. I was looking at how HWInfo is done and the only difference is what I am trying to use has switches after the command like the -r -c.

    Task Scheduler Help Needed-image.png
    Would it work if I just had it run a .bat file while the actual commands are in the batch file?

    This is what happens if I typed it manually in a Administrator command prompt which is 5 seconds from the time the command is typed until it returns to the command prompt:
    Task Scheduler Help Needed-image.png
    Last edited by Almighty1; 03 Nov 2021 at 03:02.
      My Computer


  8. Posts : 1,223
    W10-Pro 22H2
       #8

    I did a google for the error code and found this:
    why windows 7 task scheduler task fails with error 2147942667 - Stack Overflow
    which says the error is an invalid directory name - and goes on to explain how one must remove unnecessary quotes etc from the 'start in' field on the form - and you are showing an entry there which may need tweaking - I can see a trailing single quote ('). Any help?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:46.
Find Us




Windows 10 Forums