I have a batch script that runs robocopy on a folder to archive files to a network drive, on a Windows 10 Pro machine; (Note: These machines are on a domain, but have been disconnected from the domain at a client site for long time. This has not been a problem so far, but maybe this is the issue below?)
8 months ago I set up a bunch of machines to run this script. I set up a task to do so, and to make sure it doesn't bother the user, it's set to run under a local admin account ("itadmin") every 5 minutes.
This has been running without issue on all these machines for months. Also, it runs fine as the logged in user, but that causes a flash on the screen as the cmd window opens. Also, I can run the batch file as the logged in user manually, and also as the logged in user or the itadmin account using runas.
This week I logged in, and it appears there has been some windows update. Because now Task Scheduler is reporting error 0xC0000142 when the task is triggered. I updated to run as the logged in user without changing anything else and it's fine.
Did something change? Some security setting? I can't find any help on this.
thanks!