Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Administration > Problem setting up scheduled task

Reply
Thread Tools Display Modes

Problem setting up scheduled task

 
 
Mike B
Guest
Posts: n/a

 
      01-08-2008
I'm on Vista Ultimate. I'm trying to set up a scheduled task which will copy
a file from within my AppData folder (I'm an Admin, running with UAC on) to
another local user's AppData folder (they're a normal User).

My basic Action in the task is:

Program:
robocopy
Arguments:
"C:\Users\Mike\AppData\Local\Microsoft\Media Player"
"C:\Users\Hesper\AppData\Local\Microsoft\Media Player"
CurrentDatabase_360.wmdb /SEC

I've ticked the "Run with highest privileges" box on the General tab, since
I think that is necessary to copy stuff into another users folder?

I've set this to Trigger on login to my account, but a Condition is that
there should be idle time for 1 minute.

OK. So, when I select this scheduled task and manually hit the Run button
in the scheduler window, it works fine: a cmd window pops up and I see
robocopy's progress in copying the file to completion.

BUT... when I leave this task to self-trigger, things do NOT work out so
well. The file is NOT copied. Nothing ever seems to happen.

In the top panel, under the "Last Run Result" column, it says (0x41325).

So, what gives? Why does this work when I run the task manually, but not
when it self-triggers?

Thanks for any help.

Mike

 
Reply With Quote
 
 
 
 
Mike B
Guest
Posts: n/a

 
      01-09-2008
OK, here's an update.

I mentioned that I'd set this scheduled task to Trigger on login to my
account, but also with a Condition that there should be idle time for 1
minute.

So, I tried removing the "idle time" condition, and lo and behold the
scheduled task now runs fine, and copies the file, a short time after I log
in.

So, the question is now: "why doesn't the idle time condition work for me in
this situation"? I have read that "idle time" is always assumed to be
happening when the screensaver is on, whatever the CPU is doing in the
background on other tasks? Is that right?

It seems that my previous task *did* try to trigger on idle time, but for
some reason couldn't complete properly (0x41325 code).

Any idea why this happened?

I am running Diskeeper, which itself looks for CPU idle time and then
defrags during idle time... could that be messing up my scheduled "idle time"
task? I thought not, given that (apparently) the scheduler assumes it's idle
time if the screensaver is on... and the screensaver *does* come on even when
Diskeeper is running in the background.

Thanks for any help.

Mike



"Mike B" wrote:

> I'm on Vista Ultimate. I'm trying to set up a scheduled task which will copy
> a file from within my AppData folder (I'm an Admin, running with UAC on) to
> another local user's AppData folder (they're a normal User).
>
> My basic Action in the task is:
>
> Program:
> robocopy
> Arguments:
> "C:\Users\Mike\AppData\Local\Microsoft\Media Player"
> "C:\Users\Hesper\AppData\Local\Microsoft\Media Player"
> CurrentDatabase_360.wmdb /SEC
>
> I've ticked the "Run with highest privileges" box on the General tab, since
> I think that is necessary to copy stuff into another users folder?
>
> I've set this to Trigger on login to my account, but a Condition is that
> there should be idle time for 1 minute.
>
> OK. So, when I select this scheduled task and manually hit the Run button
> in the scheduler window, it works fine: a cmd window pops up and I see
> robocopy's progress in copying the file to completion.
>
> BUT... when I leave this task to self-trigger, things do NOT work out so
> well. The file is NOT copied. Nothing ever seems to happen.
>
> In the top panel, under the "Last Run Result" column, it says (0x41325).
>
> So, what gives? Why does this work when I run the task manually, but not
> when it self-triggers?
>
> Thanks for any help.
>
> Mike
>

 
Reply With Quote
 
Mike B
Guest
Posts: n/a

 
      01-11-2008
Seem to be talking to myself here, but never mind.

I seem to be having real problems in getting any scheduled task having an
"idle time" condition to run at all, when I expect it should.

I set up one to run "shutdown /s /f" at 1.30am each day, but only if the
computer has been idle for 15 minutes... but this task has never run
successfully at the appointed time. But when I manually hit the run button
on this task, sure enough the computer shuts down OK -- so no problem with
the command itself.

I suspect that anytime I include an "idle time" condition the task refuses
to run, for some reason.

Any ideas on this?

Thanks,

Mike


"Mike B" wrote:

> OK, here's an update.
>
> I mentioned that I'd set this scheduled task to Trigger on login to my
> account, but also with a Condition that there should be idle time for 1
> minute.
>
> So, I tried removing the "idle time" condition, and lo and behold the
> scheduled task now runs fine, and copies the file, a short time after I log
> in.
>
> So, the question is now: "why doesn't the idle time condition work for me in
> this situation"? I have read that "idle time" is always assumed to be
> happening when the screensaver is on, whatever the CPU is doing in the
> background on other tasks? Is that right?
>
> It seems that my previous task *did* try to trigger on idle time, but for
> some reason couldn't complete properly (0x41325 code).
>
> Any idea why this happened?
>
> I am running Diskeeper, which itself looks for CPU idle time and then
> defrags during idle time... could that be messing up my scheduled "idle time"
> task? I thought not, given that (apparently) the scheduler assumes it's idle
> time if the screensaver is on... and the screensaver *does* come on even when
> Diskeeper is running in the background.
>
> Thanks for any help.
>
> Mike
>
>
>
> "Mike B" wrote:
>
> > I'm on Vista Ultimate. I'm trying to set up a scheduled task which will copy
> > a file from within my AppData folder (I'm an Admin, running with UAC on) to
> > another local user's AppData folder (they're a normal User).
> >
> > My basic Action in the task is:
> >
> > Program:
> > robocopy
> > Arguments:
> > "C:\Users\Mike\AppData\Local\Microsoft\Media Player"
> > "C:\Users\Hesper\AppData\Local\Microsoft\Media Player"
> > CurrentDatabase_360.wmdb /SEC
> >
> > I've ticked the "Run with highest privileges" box on the General tab, since
> > I think that is necessary to copy stuff into another users folder?
> >
> > I've set this to Trigger on login to my account, but a Condition is that
> > there should be idle time for 1 minute.
> >
> > OK. So, when I select this scheduled task and manually hit the Run button
> > in the scheduler window, it works fine: a cmd window pops up and I see
> > robocopy's progress in copying the file to completion.
> >
> > BUT... when I leave this task to self-trigger, things do NOT work out so
> > well. The file is NOT copied. Nothing ever seems to happen.
> >
> > In the top panel, under the "Last Run Result" column, it says (0x41325).
> >
> > So, what gives? Why does this work when I run the task manually, but not
> > when it self-triggers?
> >
> > Thanks for any help.
> >
> > Mike
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing scheduled task? SonicJoe Windows Vista Performance 6 11-07-2007 06:48 PM
Scheduled task from standby---help! ksipp01 Windows Vista General Discussion 12 11-04-2007 05:29 PM
Scheduled task failed njem Windows Vista General Discussion 0 08-20-2007 09:53 PM
How do you rename a scheduled task Keith Hill [MVP] Windows Vista Administration 3 07-26-2007 05:32 PM
Can a Scheduled Task be renamed? Fred B. Windows Vista General Discussion 4 05-03-2007 10:05 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59