Question Locked

Scheduled Task fails when Server 2000 is logged off

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 ugadata

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.