Share via

Task Scheduler and Robocopy

Anonymous
2022-07-15T12:42:49+00:00

Good morning:

I'm having a very odd issue with Task Scheduler and Robocopy on a Windows Server 2016 machine.

I have script that uses net use to connect to a server on a different domain. I am able to get to that server and go to various folders using the provided credentials with no errors or issues. The script then calls robocopy to copy files and subdirectories to a server on our local domain. I can run this script manually with no problem. When I put it in Task Scheduler and run it from there, the log file keeps giving me this error:

ERROR 1907 (0x00000773) Accessing Source Directory <directory name> The user's password must be changed before signing in.

Neither the user used to run the task nor the user connecting to the other domain are flagged in AD to change their passwords. I can't figure out why I keep getting this message. Again, I can run the script manually with no errors, but when I try to run it using task scheduler I get this error.

Thanks in advance for any help you can offer,

Mary

Windows for home | Windows 10 | Windows update

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.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Sakiko 39,240 Reputation points Independent Advisor
    2022-07-15T13:13:51+00:00

    Hello, I'm A&K.

    This community is a general consumer forum, servers and professional products are not supported by this community, Microsoft has a forum for professional users to deal with these issues, please go to the professional user forum for more professional help: https://docs.microsoft.com/en-us/answers/products/

    Was this answer helpful?

    0 comments No comments