I have a Buffalo NAS LS220D setup and mapped to drive N: I run automated backup scripts on my machine using Robocopy, scripts, and Task Scheduler. If I manually run the script myself the commands run fine, but when the task runs from task scheduler, it copies to my OneDrive directory, but not to the Buffalo NAS directory.
I'm pretty sure it's a permissions issue involving my mapped N drive and I've tried storing my NAS drive credentials in Windows credentials for the N drive and storing my local user account as part of the task, but that's been the extent of my troubleshooting.
If anyone has any experience getting robocopy scripts to run on this drive, please do let me know.