Question Locked
0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a schedule task that runs a batch file. This Batch file maps a network drive to a remote server (i have to pass a username and password to it as well), then using xcopy, copies down a file to a local folder. The task runs fine wehn I am logged in and manually run it, but if the server is logged out (which it will be 99.999% of the time) the scheduled task fails with a 0x4 status. I am guessing it is due to the batch file trying to map a drive. If I cannot map a drive while logged off, how can I copy a file from a remote server via a scheduled task?
2 replies
by maru3445 Accepted solution
Clarifications
by ugadata Accepted solution
In order to run scheduled batch files at the server someone needs to be logged on locally to that server.
I would suggest leaving a user logged on that has all the proper rights to accomplish the task you want to run. Then setup a password protected screen saver to run after a short period of inactivity (uh .. I wouldn't suggest using any of the heavy graphic screen savers)
This allow the scheduled task to run and also maintain a secure console at the server.
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending
Question Locked
Internet connection perfect on PC, not connecting anywhere else
0 helpful
4 replies
Question Locked
Using multi-NIC setup for NAS + router — better than VLAN?
0 helpful
4 replies
0 helpful
5 replies
Question Locked
Unknown device connected to my network
0 helpful
2 replies
Question Locked
How to change public IP without ISP?
0 helpful
2 replies