Windows 7 Problem with Task Scheduler Stopping a task.

  • Thread starter Thread starter IMGT
  • Start date Start date
I

IMGT

Guest
Win7 Pro 64bit
I would like some help on this stumper

My computer starts via BIOS during the week, shortly thereafter a stream starts using mediaplayer.

This has been configured with Task Scheduler.

Now the problem is, it (mediaplayer) won’t stop after 45 minutes.

In the Task’s properties, under Settings, I have checked “Stop the task if it runs longer than” with “45 minutes” as the set point. Also “If the running task does not end when requested, force it to stop” is checked.

In the Task’s properties under Triggers, I have checked “Stop the task if it runs longer than” with “45 minutes” as the set point.

Here’s the xml, any help would be greatly appreciated.

<?xml version="1.0" encoding="UTF-16" ?>

- < Task version =" 1.2 " xmlns =" ">

- < RegistrationInfo >

< Date > 2010-05-25T18:12:26.395749 </ Date >

< Author > SANDY-PC\SANDY </ Author >

</ RegistrationInfo >

- < Triggers >


- < CalendarTrigger >

< StartBoundary > 2010-05-25T05:00:00 </ StartBoundary >

< ExecutionTimeLimit > PT45M </ ExecutionTimeLimit >

< Enabled > true </ Enabled >

- < ScheduleByWeek >


- < DaysOfWeek >

< Monday />

< Tuesday />

< Wednesday />

< Thursday />

< Friday />

</ DaysOfWeek >

< WeeksInterval > 1 </ WeeksInterval >

</ ScheduleByWeek >

</ CalendarTrigger >

</ Triggers >

- < Principals >


- < Principal id =" Author ">

< UserId > SANDY-PC\SANDY </ UserId >

< LogonType > Password </ LogonType >

< RunLevel > LeastPrivilege </ RunLevel >

</ Principal >

</ Principals >

- < Settings >


< MultipleInstancesPolicy > StopExisting </ MultipleInstancesPolicy >

< DisallowStartIfOnBatteries > false </ DisallowStartIfOnBatteries >

< StopIfGoingOnBatteries > true </ StopIfGoingOnBatteries >

< AllowHardTerminate > true </ AllowHardTerminate >

< StartWhenAvailable > false </ StartWhenAvailable >

< RunOnlyIfNetworkAvailable > false </ RunOnlyIfNetworkAvailable >

- < IdleSettings >


< StopOnIdleEnd > true </ StopOnIdleEnd >

< RestartOnIdle > false </ RestartOnIdle >

</ IdleSettings >

< AllowStartOnDemand > true </ AllowStartOnDemand >

< Enabled > true </ Enabled >

< Hidden > false </ Hidden >

< RunOnlyIfIdle > false </ RunOnlyIfIdle >

< WakeToRun > false </ WakeToRun >

< ExecutionTimeLimit > PT45M </ ExecutionTimeLimit >

< Priority > 7 </ Priority >

</ Settings >

- < Actions Context =" Author ">


- < Exec >

< Command > "C:\Program Files\Windows Media Player\wmplayer.exe" </ Command >

< Arguments > "C:\Users\SANDY\Music\Playlists\michradio.wpl" </ Arguments >

</ Exec >

</ Actions >

</ Task >

More...
 
Back
Top