ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Task Schedule Failed

    Scheduled Pinned Locked Moved IT Discussion
    wrcombswindows taskswindows 11
    17 Posts 6 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WrCombsW
      WrCombs @Obsolesce
      last edited by

      @Obsolesce said in Task Schedule Failed:

      @WrCombs said in Task Schedule Failed:

      SO Iknow whats causing the issue, I'm just not sure how to fix it.

      Windows 11 device, Task is scheduled to start a program

      c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3 
      

      It shows Last Run results 0x4 Which I find out means "System can't access path/file"

      I Changed user, and tried running it again (different admin user) no change, same status.

      I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)

      Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.

      The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.

      Any ideas how I can resolve this?

      Export the scheduled task as xml so we can get a clearer picture of what it is. Clean it up before posting.

      what do you mean "clean it up before posting" ?

      ObsolesceO 1 Reply Last reply Reply Quote 0
      • WrCombsW
        WrCombs
        last edited by

        Tried the Quotes around the command , same error.

        1 Reply Last reply Reply Quote 0
        • DanpD
          Danp
          last edited by

          @WrCombs said in Task Schedule Failed:

          Event Viewer shows:
          9da0b5a6-861b-4098-9b12-9f3eb8a0d608-image.png

          Redacted is just the name of the POS.

          I would focus on solving this. Guessing that it's some form of rights issue or DLLs that aren't accessible / registered for this user.

          WrCombsW 1 Reply Last reply Reply Quote 1
          • WrCombsW
            WrCombs @Danp
            last edited by WrCombs

            @Danp said in Task Schedule Failed:

            @WrCombs said in Task Schedule Failed:

            Event Viewer shows:
            9da0b5a6-861b-4098-9b12-9f3eb8a0d608-image.png

            Redacted is just the name of the POS.

            I would focus on solving this. Guessing that it's some form of rights issue or DLLs that aren't accessible / registered for this user.

            Originally I thought it was because the author of the task was set to a different store completely. But it's been working fine up until they upgraded to windows 11 without our knowledge.

            So i re-wrote the Task as the current user, and still get the same error so it's not an author issue.

            1 Reply Last reply Reply Quote 0
            • DanpD
              Danp @notverypunny
              last edited by

              @notverypunny said in Task Schedule Failed:

              I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)

              This statement is confusing to me. Are you not able to navigate to this directory in CMD or Explorer?

              WrCombsW 1 Reply Last reply Reply Quote 0
              • WrCombsW
                WrCombs @Danp
                last edited by

                @Danp said in Task Schedule Failed:

                @notverypunny said in Task Schedule Failed:

                I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)

                This statement is confusing to me. Are you not able to navigate to this directory in CMD or Explorer?

                I missed the " " on the end of the path in CMD the first time

                DanpD 1 Reply Last reply Reply Quote 0
                • DanpD
                  Danp @WrCombs
                  last edited by

                  @WrCombs Does the software run correctly via command line when you are logged in as the admin user?

                  WrCombsW 1 Reply Last reply Reply Quote 0
                  • WrCombsW
                    WrCombs @Danp
                    last edited by

                    @Danp said in Task Schedule Failed:

                    @WrCombs Does the software run correctly via command line when you are logged in as the admin user?

                    Yes, it does - and even better, History / Task logging shows it's working

                    1 Reply Last reply Reply Quote 0
                    • WrCombsW
                      WrCombs
                      last edited by

                      At this point I'm just going to watch it, Turned on History and it shows that it is running successfully when I manually run it.

                      1 Reply Last reply Reply Quote 0
                      • ObsolesceO
                        Obsolesce @WrCombs
                        last edited by

                        @WrCombs said in Task Schedule Failed:

                        @Obsolesce said in Task Schedule Failed:

                        @WrCombs said in Task Schedule Failed:

                        SO Iknow whats causing the issue, I'm just not sure how to fix it.

                        Windows 11 device, Task is scheduled to start a program

                        c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3 
                        

                        It shows Last Run results 0x4 Which I find out means "System can't access path/file"

                        I Changed user, and tried running it again (different admin user) no change, same status.

                        I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)

                        Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.

                        The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.

                        Any ideas how I can resolve this?

                        Export the scheduled task as xml so we can get a clearer picture of what it is. Clean it up before posting.

                        what do you mean "clean it up before posting" ?

                        As in censor sensitive info before posting it publicly.

                        Having the xml export of the scheduled task will show us exactly all configured options and settings of the scheduled task.

                        And yes, it would have shown that you were missing quotes in the command / paths.

                        WrCombsW 1 Reply Last reply Reply Quote 0
                        • WrCombsW
                          WrCombs @Obsolesce
                          last edited by

                          @Obsolesce said in Task Schedule Failed:

                          @WrCombs said in Task Schedule Failed:

                          @Obsolesce said in Task Schedule Failed:

                          @WrCombs said in Task Schedule Failed:

                          SO Iknow whats causing the issue, I'm just not sure how to fix it.

                          Windows 11 device, Task is scheduled to start a program

                          c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3 
                          

                          It shows Last Run results 0x4 Which I find out means "System can't access path/file"

                          I Changed user, and tried running it again (different admin user) no change, same status.

                          I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)

                          Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.

                          The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.

                          Any ideas how I can resolve this?

                          Export the scheduled task as xml so we can get a clearer picture of what it is. Clean it up before posting.

                          what do you mean "clean it up before posting" ?

                          As in censor sensitive info before posting it publicly.

                          Having the xml export of the scheduled task will show us exactly all configured options and settings of the scheduled task.

                          And yes, it would have shown that you were missing quotes in the command / paths.

                          Create basic task auto puts in the quotations when you select start a program.

                          1 Reply Last reply Reply Quote 0
                          • siringoS
                            siringo
                            last edited by

                            try putting the switches in the 'arguments' field of the Action tab.

                            b4560553-30a6-44aa-9926-70959d3ce835-image.png 1.png

                            1 Reply Last reply Reply Quote 1
                            • 1 / 1
                            • First post
                              Last post