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?