windows - scheduled task could not start -
i using below batch file create scheduled task
@echo on cls color echo. echo. echo ### schduled task %1 ip = %2 master ip = %3 ### echo. echo. title copy %1 - %2 - mse_update schduledtask :ping ping %2 -n 1 if %errorlevel% neq 0 goto :ping ping %3 -n 1 if %errorlevel% neq 0 goto :ping net use \\%2\c$\share /delete net use \\%3\c$\share /delete net use \\%2\c$\share password /user:administrator if %errorlevel% neq 0 goto :ping net use \\%3\c$\share password /user:administrator if %errorlevel% neq 0 goto :ping schtasks /create /s "\\%2" /u administrator /p password1 /ru administrator /rp pass2 /sc weekly /d tue /tn "mse_update" /tr "\\%3\c$\share\mse_update\mpam-fe.exe" /st 10:00:00 rem -------if %errorlevel% neq 0 goto :failed goto :done :failed @echo off color 47 pause exit :done @echo off color 27 pause exit that batch file executed fine getting warring
f:\ics\01_populate\schduledtask>schtasks /create /s "\192.168.1.20" /u administrator /p password1 /ru administrator /rp pass2 /sc weekly /d tue /tn "mse_update" /tr "\192.168.1.10\c$\share\mse_update\mpam-fe.exe" /st 10:00:00 warning: scheduled task "mse_update" has been created, may not run because account information not set.
below because of when run task error message says
could not start
please if can
Comments
Post a Comment