Enabling Scheduled Tasks Windows 2008 SCHTASKS

Question - The syntax and name of the scheduled task is correct but I get error message: ERROR: The system cannot find the file specified. Please help! Thank you.


Who is Participating?
For the task "name" you have to give the full path to the task ie including
task scheduler folders. You can get this with the help of

schtasks /query

Example ....

C:\Windows\System32\schtasks.exe /run /tn "\MyTaskSchedulerFolder\Task1"
what is the full path to the task to be run?

mmoyaAuthor Commented:
The task is stored on C:\Folder\run.cmd
Name of scheduled task = Test
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

In Server 2008 check the SchedLgU.txt file (SystemRoot\SchedLgU.txt) for errors.
mmoyaAuthor Commented:
SchedLgU. doesnt report any errors...

Still not working ran the following:

C:\Windows\System32>schtasks.exe /run /tn "\Tasks\Microsoft\Windows\test"
ERROR: The system cannot find the path specified.

Test task name is in that directory...

mmoyaAuthor Commented:
It worked. Had the path incorrect... Used schtasks.exe /run /tn "\Microsoft\Windows\test"

Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.