I have a vbs script that backups some directories to a usb or nas attached device.
The script works fine when launched manually and it works when doing a backup to an usb hard drive.
When it is scheduled, it gives the error 0x41301 but nothing happens.
The task is currently running.
I found somewhere to troubleshoot what really happens :
echo %date% %time% %username% >> c:\bat\test.txt
cscript //nologo c:\bat\backup2landisk.vbs 1>>c:\bat\test.txt 2>>&1
echo %date% %time% >> c:\bat\test.txt
Tue 03/04/2014 23:30:00.43 Administrator
c:\bat\backup2landisk.vbs(186, 19) Microsoft VBScript runtime error: Path not found
So the problem is related to the problem of Windows addressing networkdrives through a script.
I already disabled UAC, ran with highest privileges, defined workpath,
EnabledLinkedConnections parameter set to 1.
Any help would be appreciated.