Scheduled tasks in WP

  • Thread starter Thread starter GK
  • Start date Start date
G

GK

Hello,

I have scheduled a task to run at specified time. The tasks runs only if
logged in. Otheriwse it won't run. Any idea how to solve thiss?

Note: "Run only if logged on" is not checked.

Regards,
Kamath
 
Hi Kamath,

Did you enter a User/password for the task? If you need to access
network shares etc. then that user/pass credential will need to by an
administrator.

Hope that helps.
CreateWindow
http://mymessagetaker.com
The while-you-were-out message program you have been looking for!
 
Please check the file %systemroot%\SchedLgU.Txt for failure logs

You can also run the command through AT command. Please post teh exact error
message recieved or the event log if exists.
--
Regards
Gurpreet Singh


"GK" wrote:

> Hello,
>
> I have scheduled a task to run at specified time. The tasks runs only if
> logged in. Otheriwse it won't run. Any idea how to solve thiss?
>
> Note: "Run only if logged on" is not checked.
>
> Regards,
> Kamath
>
>
>
>
>
 
"GK" wrote in message news:fjt7kn$qb1$2@news4.fe.internet.bosch.com...
> I have scheduled a task to run at specified time. The tasks runs
> only if
> logged in. Otheriwse it won't run. Any idea how to solve thiss?
>
> Note: "Run only if logged on" is not checked.


So when you are NOT logged in, is the computer still powered up and
Windows still running? If not then you need to enable the option in
the scheduled event to wake the computer. You still need the power
cord plugged into the computer although it is powered down for it to
wake up for the scheduled event to start.
 
Yes, both user id and password are enetred.
- GK
<createwindow@gmail.com> wrote in message
news:6e54aaf1-5c4e-4154-aead-a655c3feb306@s8g2000prg.googlegroups.com...
> Hi Kamath,
>
> Did you enter a User/password for the task? If you need to access
> network shares etc. then that user/pass credential will need to by an
> administrator.
>
> Hope that helps.
> CreateWindow
> http://mymessagetaker.com
> The while-you-were-out message program you have been looking for!
>
 
Computer is powered up and still running.
- GK
"VanguardLH" <VanguardLH@mail.invalid> wrote in message
news:uC2TZAiPIHA.5264@TK2MSFTNGP02.phx.gbl...
> "GK" wrote in message news:fjt7kn$qb1$2@news4.fe.internet.bosch.com...
>> I have scheduled a task to run at specified time. The tasks runs only if
>> logged in. Otheriwse it won't run. Any idea how to solve thiss?
>>
>> Note: "Run only if logged on" is not checked.

>
> So when you are NOT logged in, is the computer still powered up and
> Windows still running? If not then you need to enable the option in the
> scheduled event to wake the computer. You still need the power cord
> plugged into the computer although it is powered down for it to wake up
> for the scheduled event to start.
>
 
"GK" <Ganesh.Kamath@in.bosch.com> wrote in message
news:fjt7kn$qb1$2@news4.fe.internet.bosch.com...
> Hello,
>
> I have scheduled a task to run at specified time. The tasks runs only if
> logged in. Otheriwse it won't run. Any idea how to solve thiss?
>
> Note: "Run only if logged on" is not checked.
>
> Regards,
> Kamath
>


How did you determine that it did not run? What is the command
you execute with the scheduled task?

A good starting point would be to schedule a batch file like so:
@echo off
echo Scheduled task started on %date% at %time% >> c:\test.log

You will probably find that your batch file ran but that you
have a different problem, e.g. insufficient access rights. This
is why you should post full details about the task you're
executing.
 
I used command line Winzip to zip a set of files and copy it to a specified
location. And I found that no file got created. But when this task is run
manually, it executes properly.

Note: I used the *same* commaand in W2K and it used work fine.
- GK
"Pegasus (MVP)" <I.can@fly.com> wrote in message
news:%23cZnOLVQIHA.2268@TK2MSFTNGP02.phx.gbl...
>
> "GK" <Ganesh.Kamath@in.bosch.com> wrote in message
> news:fjt7kn$qb1$2@news4.fe.internet.bosch.com...
>> Hello,
>>
>> I have scheduled a task to run at specified time. The tasks runs only if
>> logged in. Otheriwse it won't run. Any idea how to solve thiss?
>>
>> Note: "Run only if logged on" is not checked.
>>
>> Regards,
>> Kamath
>>

>
> How did you determine that it did not run? What is the command
> you execute with the scheduled task?
>
> A good starting point would be to schedule a batch file like so:
> @echo off
> echo Scheduled task started on %date% at %time% >> c:\test.log
>
> You will probably find that your batch file ran but that you
> have a different problem, e.g. insufficient access rights. This
> is why you should post full details about the task you're
> executing.
>
 
Sorry, I have nothing to add until you report the result of
the test batch file I suggested.


"GK" <Ganesh.Kamath@in.bosch.com> wrote in message
news:fk825o$ehd$1@news4.fe.internet.bosch.com...
>I used command line Winzip to zip a set of files and copy it to a specified
>location. And I found that no file got created. But when this task is run
>manually, it executes properly.
>
> Note: I used the *same* commaand in W2K and it used work fine.
> - GK
> "Pegasus (MVP)" <I.can@fly.com> wrote in message
> news:%23cZnOLVQIHA.2268@TK2MSFTNGP02.phx.gbl...
>>
>> "GK" <Ganesh.Kamath@in.bosch.com> wrote in message
>> news:fjt7kn$qb1$2@news4.fe.internet.bosch.com...
>>> Hello,
>>>
>>> I have scheduled a task to run at specified time. The tasks runs only if
>>> logged in. Otheriwse it won't run. Any idea how to solve thiss?
>>>
>>> Note: "Run only if logged on" is not checked.
>>>
>>> Regards,
>>> Kamath
>>>

>>
>> How did you determine that it did not run? What is the command
>> you execute with the scheduled task?
>>
>> A good starting point would be to schedule a batch file like so:
>> @echo off
>> echo Scheduled task started on %date% at %time% >> c:\test.log
>>
>> You will probably find that your batch file ran but that you
>> have a different problem, e.g. insufficient access rights. This
>> is why you should post full details about the task you're
>> executing.
>>

>
>
 
"GK" <Ganesh.Kamath@in.bosch.com> wrote in message
news:fk8006$bub$1@news4.fe.internet.bosch.com...
> Computer is powered up and still running.
> - GK
> "VanguardLH" <VanguardLH@mail.invalid> wrote in message
> news:uC2TZAiPIHA.5264@TK2MSFTNGP02.phx.gbl...
>> "GK" wrote in message
>> news:fjt7kn$qb1$2@news4.fe.internet.bosch.com...
>>> I have scheduled a task to run at specified time. The tasks runs
>>> only if
>>> logged in. Otheriwse it won't run. Any idea how to solve thiss?
>>>
>>> Note: "Run only if logged on" is not checked.

>>
>> So when you are NOT logged in, is the computer still powered up and
>> Windows still running? If not then you need to enable the option
>> in the scheduled event to wake the computer. You still need the
>> power cord plugged into the computer although it is powered down
>> for it to wake up for the scheduled event to start.
>>

>
>



Did you check the Task Scheduler's log to see what action was taken at
the time the event was scheduled? Advanced -> View Log menu. The log
rolls around so the end of the file is probably not where the logging
stopped last.

Have you tried running the string you entered in the Command field
(while in the path specified) for the event? Maybe what you think
should run will not run so it errors and looks like it didn't start.
Look for the line "[ ***** Most recent entry is above this line
***** ]". Then read upwards from there looking for the time when you
scheduled the event to execute (and roll to the bottom of the file if
you hit the top looking for the scheduled time).

Is the RunAs for the event the same account under which you say the
scheduled task will execute okay when started manually?

Did you specify the absolute path to the executable file? Or did you
just enter the file's name in the Command string?

If you are executing a DOS command, did you make sure to enclose any
strings (i.e., replaceable parameters) with double-quotes in case
their value has embedded spaces? Even if the command is something
like:

<path>\somecmd.exe %1

you should instead use

<path>\somecmd.exe "%1"

just in case the parameter's value has space characters in it. And if
the path to the executable has spaces then you should use

"<path>\somecmd.exe" "%1"
 
Back
Top