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.

SCHTASKS /RUN /TN "TEST"

mmoyaAsked:
Who is Participating?
 
rsoly777Commented:
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"
0
 
cfEngineersCommented:
what is the full path to the task to be run?

0
 
mmoyaAuthor Commented:
The task is stored on C:\Folder\run.cmd
Name of scheduled task = Test
0
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.

 
rsoly777Commented:
In Server 2008 check the SchedLgU.txt file (SystemRoot\SchedLgU.txt) for errors.
0
 
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...

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

Thank you!
0
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.