Task Scheduler
Hi, I have a scheduled task that is setup to run a batch file. The batch file essentially calls a console application passing it a parameter. This seems ok as I can see in the process list the console application running. However the job of the console app is to load up X number of browsers pointing to a URL. When I double click the batch when logged in I can see all the browsers fired up. When I try running the Scheduled Task only the console app runs. It does not actually fire up the browsers. I am logged into the machine as the same user as the task that is running. Does anyone know what I am missing? Regards Jeremy
October 22nd, 2009 8:02am

Hi Jeremy,Thank you for posting here.You may need toensure the account to run task scheduler is in group "log on as batch job" rights (server side). Control Panel|Admin Tools|Local Security Policy\Local Policies\User Rights Assignments"Log on as a batch job"Does it work? If the issue continues, please let us know your server's OS / SP version and batch file details.The following threads may help you geta idea to solve the your issue.Scheduled task not runninghttp://social.technet.microsoft.com/Forums/en-US/winservergen/thread/933aac93-d972-4aea-adeb-1fc1fba6a4c4Task Scheduler with Pythonhttp://social.technet.microsoft.com/Forums/en-US/windowsserver2008r2management/thread/aae65b75-4b91-4d1a-a3c6-cd8869c6a5a9Best Regards,Wilson JiaThis posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
October 22nd, 2009 10:14am

Thanks Wilson,Checked the User Rights Assignment and the account is there.Server is Windows Server 2008 Enterprise SP2The batch file is@echo offcall "C:\test\SilverlightStressTest.exe" 50 C:\test\Launcher.batand the Launcher.bat is @echo offcall "C:\Program Files (x86)\Microsoft Silverlight\sllauncher.exe" 253754274.echoEssentially the parameters tell the console app to launch this parameter 50 timesMany ThanksJeremy
October 22nd, 2009 4:50pm

Hi,Please tryadd a command line like "CD c:\users\%username%\desktop" in front of the command line to start application. In addition, please add "Authenticated Users" account into "log on as a batch job" How it works?If this issue continues, please check the Task Scheduled event logs under Eventvwr.msc > Applications and Services Logs > Microsoft > Windows > TaskScheduler > Operational. Is there any event log relate to this issue?Best Regards,Wilson Jia This posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
October 23rd, 2009 12:04pm

Hi,Well Im getting closer :)Now when i run the scheduled task I can see the spawned sllauncher.exe processes in the Task Manager.Only problem is I cant see them on the screen nor can i see the wrapper program or the batch files running.Any Ideas?Event Viewer logs all point to the task running successfully.RegardsJeremy
October 23rd, 2009 5:37pm

Hi Jeremy,Do you receive the return code 0 in event logs when these scheduled task arerunning.Regards,WilsonThis posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2009 11:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics