I am trying to use schtaks to schedule a task on a remote server on our network. The server is on a child domain with it’s own GCS so my credentials I am logged into my PC with will not work. I have credentials on the remote machine and can run the schtasks command supplying these crentials in the command line. The task scehdules and shows up in the scheduled tasks of the remote machine but it will not run. It displays could not start. If I go into the properties of the task before it is supposed to run and supply the password the task will run. When I run the schtasks command the output tells me that the task was created but then gives me a warning which states “WARNING: The scheduled task has been created, but may not run because the account information has not been set.” So apparently the password info is not being passed. See below for the syntax I am using. What am I doing wrong?
c:>schtasks /create /s \\server /u domain\user /p password /ru domain\user /rp password /sc once /tr c:\task.vbs /st hh:mm:ss /tn taskname
Thanks
Jim