I'm working on a project to migrate several PowerShell scripts off of a generic server (using Task Scheduler) to VisualCron. These scripts are calling Robocopy to back up files from a PC to a network share, and save a log file of the results to another folder on that same network share. On the Task Scheduler server, these tasks are running as a specific service account, depending on the workstation or system that is being backed up. These same service account credentials have been added into VisualCron's managed credentials. Everything is duplicated as VisualCron jobs, and the exact same PowerShell scripts have been copied and pasted into VC PowerShell tasks. These scripts are still running on the Task Scheduler server (without issues) because I'm seeing errors when trying to run them in VC.
These PowerShell tasks fail within VC when using the respective service account. The error output states:
"Cannot find path '\\SERVERNAME\backupfolder' because it does not exist."
The detailed Robocopy error output also notes that:
"ERROR 1329 (0x00000531) Opening Log File \\SERVERNAME\backupfolder\LOGS\logfile.txt
This user isn't allowed to sign in to this computer."
Like I mentioned above, these service accounts are running the PowerShell scripts fine from the Task Scheduler server. I even double-checked the permissions on the backup server \\SERVERNAME, and the service account is properly authorized (otherwise these scripts couldn't run from the old server).
However, I've also tested by running the VC jobs with my personal admin credentials (which also has permissions to these same network shares and workstations), and the jobs run fine! No error output, and log file is created on the remote backup share.
I'm not sure where to continue troubleshooting. Is there any special permissions that should be set for these service accounts on the actual VC server?