Problem with running scheduled tasks in Task Scheduler

Anonymous
2023-10-30T14:03:43+00:00

Hi,

I need to run set of batch files through task scheduler without the need of the user being signed on the host. I have been using the domain account to create tasks and everything was working fine until, after a few months of flawless work, all of them failed. Task scheduler history showed error 2147943726. I looked in the internet and there was a note that to fix that, it is better to use Users group which I did but here is a problem. When I change the owner to ...\Users in task's properties I am unable to change security options and task is automatically being set to run only when user is logged on and in fact these tasks don't launch if I am not logged on the machine.

I tried to change them to be owned by SYSTEM and they work but unfortunately some of them need to copy files across network shares and using SYSTEM user as a tasks' owner can't do that.

Here is my actual question:

how can I prevent 2147943726 from occuring again, permanently, using named account or what is the working solution of scheduling the scripts without the need of user being logged on but also being able to copy the files across shares?

Thank you in advance.

B.

Windows for business Windows Server User experience Remote desktop services and terminal services

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} vote

5 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Anonymous
    2023-10-31T02:52:51+00:00

    Hello,

    Have you considered creating a dedicated service account within your Active Directory for the purpose of running scheduled tasks? This service account can have the necessary permissions and access rights to execute your batch files and interact with network resources.

    Thanks,

    Karlie

    0 comments No comments
  3. Anonymous
    2023-10-31T06:28:39+00:00

    Hi Karlie,

    thank you for your reply. Wouldn't using domain account lead to the same as we had with "normal" domain account -> error 2147943726?

    I still don't know where it came from and if not for that, I would not even consider changing anything...

    Thank you.

    Best regards,
    Bartek

    0 comments No comments
  4. Anonymous
    2023-11-01T08:31:35+00:00

    Is there any supplementary data available regarding error code 2147943726? If the root cause is related to permissions, it's likely that utilizing a service account can be an effective solution.

    0 comments No comments
  5. Anonymous
    2024-06-21T10:05:07+00:00

    Hi Karlie,

    we have also same situation in our company. If I select to run a task with option "Run only when user is logged on" its works. But if I select Run whether user is logged on or not" and entered same account its not working. And I see that its happening for more and more pc in our company. I have checked - no updates has been installed.

    0 comments No comments