task scheduler

Posted on 2012-08-29
Last Modified: 2012-10-25
Probelm with task manager.  It runs but does not run the program correctly.  It says runs fine when you double click the program, but when you setup a task, it does not run the same.  I am pretty sure it has to do with the accounts but i give up.

When i double click it manually, the program is up in task manager for about 1 min.  When it runs in task scheduler, it is up for about 10 seconds.

any ideas?
Question by:communitypc
    LVL 38

    Accepted Solution

    Sometimes (most?) this is caused by permissions problems.  What code does the task return when run?  What permissions does the account have that you're trying to run the task with?  What does the task/program do?  Are you trying to run it with switches?  Have you included the path to the program?
    LVL 2

    Author Comment

    full path, running under admin with highest privileges.  Trying to run a simple program, nothing complicated.  No switches, just by path.  Using the default path in program files.
    LVL 12

    Expert Comment

    Create a batchfile and place the same path in it and execute the same via Task Scheduler. Try this way and advise back.
    LVL 38

    Expert Comment

    What code does the task return when run?

    Even a simple program can run into problems, it depends on what it does.  Is it an executable, a batch file, a program that runs on the console?  I'm not asking to pry into your business, I'm trying to help you.

    Sometimes you can get more detail about what is happening by running the program from a batch file, as reach2sandeep said, and also redirecting the output to a text file.  For example:
    "C:\Program Files\whatever\some_program.exe" >c:\logs\result.txt

    Open in new window

    or even
    "C:\Program Files\whatever\some_program.exe" >c:\logs\result.txt 2>&1

    Open in new window

    LVL 2

    Author Comment

    tried it, still did not work.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    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,…
    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

    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

    19 Experts available now in Live!

    Get 1:1 Help Now