Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3599
  • Last Modified:

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"

0
mmoya
Asked:
mmoya
  • 3
  • 2
1 Solution
 
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
 
rsoly777Commented:
In Server 2008 check the SchedLgU.txt file (SystemRoot\SchedLgU.txt) for errors.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now