Here how the script looks like:
Net use * \\10.10.10.3\c$ /user:USER PASSWORD
Xcopy /c /r /z /d /y \\10.10.10.1\log\*.log \\10.10.10.2\f$\tslog\temp\Pro\
Xcopy /c /r /z /d /y \\10.10.10.1\dump\*.log \\10.10.10.2\f$\tslog\temp\Pro\
pacomp -m -c[2] \\10.10.10.2\f$\tslog\backup\Pro\PLog.zip \\10.10.10.2\f$\tslog\temp\Pro\*.*
Namedate /U /XZ"dmY" \\10.10.10.2\f$\tslog\backup\Pro\PLog.zip
Xcopy /R /Y \\10.10.10.2\f$\tslog\backup\pro\*.zip "\\10.10.10.2\c$\Inetpub\wwwroot\TelematicsTools\Logs\Production\"
MD "\\10.10.10.2\f$\tslog\backup\Pro\PLOG2005\"
Move /Y \\10.10.10.2\f$\tslog\backup\Pro\*.zip \\10.10.10.3\f$\tslog\backup\Pro\PLOG2005\
Net use * /delete /yes
*Noticed that I have replaced the original IP-address with fictive one instead.
*10.10.10.1 = Remote server where log files are copied from.
*10.10.10.2 = Server where the log files are copied & where the Scheduled Tasks is running from.
*10.10.10.3 = Remote DMZ server (not a member of the DC) where the *.zip file is copied too from 10.10.10.2.
I tried to run a task with only the command 'net use * \\10.10.10.2\c$' (which is the same machine where the task is running from) but when I keep monitoring the scheduled tasks nothing happen under status where usually you can see when the task is started it shows 'running'. This is really puzzling me and I hope I can understand what is wrong and why the command 'net use' is not executed from the scheduled tasks. I also tried and used the AT command to run the batch file, but the same happened again.