Link to home
Start Free TrialLog in
Avatar of mmoya
mmoyaFlag for United States of America

asked on

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"

Avatar of cfEngineers
cfEngineers

what is the full path to the task to be run?

Avatar of mmoya

ASKER

The task is stored on C:\Folder\run.cmd
Name of scheduled task = Test
In Server 2008 check the SchedLgU.txt file (SystemRoot\SchedLgU.txt) for errors.
ASKER CERTIFIED SOLUTION
Avatar of rsoly777
rsoly777
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mmoya

ASKER

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

Avatar of mmoya

ASKER

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

Thank you!