On Windows Server 2003, I used to create some scheduled task which can be run whether the user is logged or not. The scheduled task runs a batch script which copy some files on a mapped network drive (eg there is a letter to the mapped drive). Since Windows Server 2008, I can't do that anymore because the task scheduler has been 'improved'. If I check the radio button 'run if user is logged in', the scheduled task works fine, but if I choose 'run whether user is logged or not', It does not work. I explain : the jobs runs and the batch script starts, but the copy does not work because of an "access denied" to the mapped drive.
Precisions :
1) I have to use the mapped network drive, I can't use UNC path (like \\\\server)
2) The scheduled task has to be able to run if the user is disconnected.
Thank you
The problem is that when your task runs, the drive map doesn't exist in the context of the user/session the task is being run as. I can think of three ways to solve the problem:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.