On a Windows 2012 server, there is a script called xyz.bat
When it is run locally as any user who can run it, it works fine.
When it is run locally as SYSTEM in the following way:
psexec /s /i cmd.exe
It also works fine.
When converted to a scheduled task, running as SYSTEM, everything about the script works, except for composer install --no-dev
which still creates composer.lock should it not exist, but does NOT pull the files down from the specified repo. This is an internal repo, with all GIT access working appropriately.
Running as a scheduled task where my user is the run as account, it works fine too.
Any thoughts as to what could be causing this? I'm getting ready to have the admin make more user accounts to run these things, but that just seems wrong to have to do, and creates maintenance issues.