"Eric" <eric@mail.com> wrote in message
news:%23mME8KkoIHA.4308@TK2MSFTNGP06.phx.gbl...
>I re-created the task and it is still happening...
>
> There is in fact 2 tasks. One (VFPlogin) that creates a specific file for
> the second task to check, reboots the PC and login to the network
> automatically.
> The other task (VFPaction) is launched upon login, if the specific file is
> present, it runs a backup, send an email and then deletes the specific
> file.
>
> I have included the log. What is interesting is that VFPlogin starts a
> 3:15:01, as scheduled, the machine reboots but somehow the time is changed
> by the time VFPaction starts (2:17:24) which means that an hour it will be
> again 3:15 and the 2 tasks will run again.
>
> It doesn't make any sense!! Why is the time changed and why is it not
> happening indefinitely anyway?
>
> Thank you.
>
> Eric
I assume you intended to reply to me, not to Phisherman.
From your observation I gather that this is no longer a problem
with the Task Scheduler. It is a problem with your system clock.
I get the impression that one of your VFP tasks (or perhaps some
other agent) changes the system time.
Create a new scheduled task and get it to invoke shutdown.exe
so that the machine reboots. Now check two things:
- Does the system time change when you reboot the machine
manually?
- Does the system time change when you reboot the machine
with the scheduled task that invokes shutdown.exe?
You can download many versions of shutdown.exe, e.g.
the own from
www.sysinternals.com.