Task Scheduler - Odd Behavior
Program started by scheduler (NY Times Reader which uses Adobe Air) does not display any window...no errors in History...it shows up in Process Explorer as a child of taskeng.exe, so it's getting started properly....if I start it from explorer, it works fine, so it appears that either I haven't configured the task correctly or something in the task scheduler is inhibiting the display of the window....details of the task are.... ÿ<?xml version="1.0" encoding="UTF-16"?><Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2009-12-29T10:12:43.0776578</Date> <Author>RPKaye1\Bob Kaye</Author> <Description>Open NY Times each AM</Description> </RegistrationInfo> <Triggers> <CalendarTrigger> <StartBoundary>2009-12-29T09:45:05</StartBoundary> <Enabled>true</Enabled> <ScheduleByDay> <DaysInterval>1</DaysInterval> </ScheduleByDay> </CalendarTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>RPKaye1\Bob Kaye</UserId> <LogonType>S4U</LogonType> <RunLevel>HighestAvailable</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy> <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries> <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> <AllowHardTerminate>true</AllowHardTerminate> <StartWhenAvailable>true</StartWhenAvailable> <RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable> <NetworkSettings> <Name>TRENDnet</Name> <Id>{66F04E56-6C81-4BF9-8CFF-C22CF26F5C33}</Id> </NetworkSettings> <IdleSettings> <StopOnIdleEnd>true</StopOnIdleEnd> <RestartOnIdle>false</RestartOnIdle> </IdleSettings> <AllowStartOnDemand>true</AllowStartOnDemand> <Enabled>true</Enabled> <Hidden>false</Hidden> <RunOnlyIfIdle>false</RunOnlyIfIdle> <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession> <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine> <WakeToRun>true</WakeToRun> <ExecutionTimeLimit>P3D</ExecutionTimeLimit> <Priority>7</Priority> </Settings> <Actions Context="Author"> <Exec> <Command>"C:\Program Files (x86)\Times Reader\Times Reader.exe"</Command> </Exec> </Actions></Task> Any suggestions would be appreciated...
December 31st, 2009 7:41pm

The used LogonType is S4U (service for user) which means the task is executed independent from any actually logged on users. Therefore it gets an own session id even if the same user is logged on, but you see only the things happening in the session id you're logged in. You have to switch the LogonType to InteractiveToken (is the first setting in the task scheduler settings) then you'll see the window.
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2010 12:29pm

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

Other recent topics Other recent topics