Microsoft Developer Network > Forums Home > Using Forums Forums > MSDN Sandboxx > Scheduled task does not run if another user log on with his / her credentials
Ask a questionAsk a question
 

QuestionScheduled task does not run if another user log on with his / her credentials

  • Monday, November 02, 2009 3:52 PMRenuka Kolagani Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi There,

    I have a scheduled task HYPERLINK which calls a batch file HYPERLINK.bat file. The content of the HYPERLINK.bat file is as follows -

    @"C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" c:\BCP\HYPERLINK.MDE /x m_PTA2

    My Network & Security team created a special task account to run this job.

    The scheduled task runs successfully if the user logged in is same as the scheduled task "run as" parameters. That is - if I logon to the system with the task account and the scheduled task is configured with the task account - the task runs successfully.

    If another user logs on to the PC at the scheduled time when the task which is confgured with task account credentials, it does not run. I can see the status set to "Running". However it does work.

    Can you please suggest a way out so that irrespective of which user is logged in, the scheduled task that is configured using the task account in the "Run as" parameter to run successfully?

    Thanks in advance for your reply.

    Look forward to hear from you.