Enabling Scheduled Tasks Windows 2008 SCHTASKS

Posted on 2011-05-06
Last Modified: 2012-05-11
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.


Question by:mmoya
    LVL 6

    Expert Comment

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


    Author Comment

    The task is stored on C:\Folder\run.cmd
    Name of scheduled task = Test
    LVL 9

    Expert Comment

    In Server 2008 check the SchedLgU.txt file (SystemRoot\SchedLgU.txt) for errors.
    LVL 9

    Accepted Solution

    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"

    Author Comment

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


    Author Comment

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

    Thank you!

    Featured Post

    Are end users causing IT problems again?

    You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

    Join & Write a Comment

    We recently had an issue where out of nowhere, end users started indicating that their logins to our terminal server were just showing a "blank screen." After checking the usual suspects -- profiles, shell=explorer.exe in the registry, userinit.exe,…
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
    This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now