I am trying to figure out how to / best approach to setting up a batch script running without logging into the computer prior.
I have a batch script running ROBOCOPY commands to copy (sync) data from the local server to a remote file server via a network drive.
Both servers (Windows Server 2016 - Standard) reside on the same domain.
However, if someone unintentionally logs that account out then the script, obviously, fails due to not finding the network drive (destination).
How can I or would you resolve this issue? UNC? PS?
Examples would be greatly appreciated too.
Thanks in advance.