Scheduled tasks in WP

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
 
C

createwindow

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!
 
G

gsjutla

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.
 
V

VanguardLH

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.
 
G

GK

Computer is powered up and still running.
- GK
VanguardLH said:
in message news:[email protected]...

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.
 
P

Pegasus \(MVP\)

GK said:
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.
 
G

GK

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
 
P

Pegasus \(MVP\)

Sorry, I have nothing to add until you report the result of
the test batch file I suggested.
 
V

VanguardLH

GK said:
Computer is powered up and still running.
- GK


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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top