Task scheduler run as "SYSTEM" do not execute

Tutek 721 Reputation points
2023-03-14T08:14:07.3766667+00:00

Hi,

I would like create simple task scheduler task to copy local files to nas server. I have created task, and as run as user I have set "SYSTEM" account, because I don't want every time to change password for task when administrator password will change.

Unfortunately in history I have that task was run but files are not moved, when I move this files to destination manually I can do this so this is not problem with accessing NAS server but rather the task. How could I troubleshoot this?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Zeeshan Nasir Bajwa 656 Reputation points Student Ambassador
    2023-03-14T09:02:35.85+00:00

    There are a few things you can check to troubleshoot why your task scheduler task is not copying files to the NAS server:

    1. Check the task history: Look at the task history to see if there are any error messages or warnings. This may give you some clues as to what went wrong.
    2. Verify the source and destination paths: Double-check that the source and destination paths are correct and that the user account running the task has permission to access both paths.
    3. Test the copy command: Open a command prompt and test the copy command that you're using in the task to make sure it works. For example, if you're using the "copy" command, try running it from the command prompt with the same parameters that you're using in the task.
    4. Check the "Start in" directory: Make sure that the "Start in" directory is set correctly in the task. This is the directory where the task will start running from, and it needs to be set to the directory where the files are located.
    5. Enable logging: Enable logging for the task and check the log files for any error messages or warnings. This can help you identify the root cause of the problem.
    6. Try running the task manually: Try running the task manually to see if it copies the files to the NAS server. If it works when run manually, then there may be an issue with the task settings or scheduling.

    By following these steps, you should be able to identify and troubleshoot any issues with your task scheduler task.


  2. Thameur-BOURBITA 36,251 Reputation points Moderator
    2023-03-15T09:57:22.35+00:00

    Hi @Tutek

    I would like create simple task scheduler task to copy local files to nas server. I have created task, and as run as user I have set "SYSTEM" account, because I don't want every time to change password for task when administrator password will change.

    You can use GMSA service account instead of system account. System account is a local account can be used only locally on machine itself, but if you want access to network resource you have to use domain service account which can be GMSA. You will not need to reset password manually with GMSA.

    Please don't forget to mark helpful answer as accepted


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.