-1

I type this into cmd or in a batch script:

schtasks /change /RP user_password /TN "existing_task" /ST H:M

If /ST H:M has two digits in the hour it says ERROR: The parameter is incorrect.

If /ST H:M has on digit in the hour it says ERROR: Invalid starttime value.

This should work but for some reason doesn't.

How would I go about making this work so it sets the start time of an existing task?

  • What is the exact command you are using? Hint: you need to specify both hours and minutes – DavidPostill Oct 31 '15 at 14:44
  • I do specify both minutes and hours can be any where from 5:30 to 23:01 and I still get the error. – Clarence Titor Nov 1 '15 at 1:42
  • Strange. It works for me. – DavidPostill Nov 1 '15 at 1:46
  • The task is in a separate folder. Would that make a difference?i.e. /TN "folder\task_name" – Clarence Titor Nov 1 '15 at 1:51
  • The name of the task /tn has nothing to do with folders. You would use a folder with /tr – DavidPostill Nov 1 '15 at 1:55
0

Creating an answer for this question so that others might not have to read all the comments

  1. Make sure StartTime is the format "HH:MM", i.e. 9:00 will output ERROR: Invalid starttime value, 09:00 should work
  2. Make sure your TaskName does not start with an integer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.