"Vanguard" wrote:
> "Danm" <(E-Mail Removed)> wrote in message
> news:41742D07-1FDA-4980-A8E9-(E-Mail Removed)...
> > Thanks for the suggestion, Vanguard. The first two were in effect. I
> > enabled Wake the computer... But no joy.
> >
> > "Vanguard" wrote:
> >
> >> "Danm" wrote in message
> >> news:A9C0311D-74BC-4848-A9EE-(E-Mail Removed)...
> >> >I have two simple batch files A & B. Both are scheduled to run at
> >> >night
> >> > without anyone logged on. Both work when I am logged on as
> >> > Administrator,
> >> > have the same permissions, and the same "Run as" parameters.
> >> >
> >> > A simply runs an exe file (virus scan) and works well.
> >> > B contains a simple copy command to copy a file from C:\ to a
> >> > network
> >> > drive.
> >> > It does not run with administrator logged off. I have tried to
> >> > reference
> >> > the network drive by its mapped letter and by its
> >> > \\computername\share
> >> > path.
> >> >
> >> > The OS is Windows Server 2003
> >> >
> >> > I hope there is something simple I am missing that someone can help
> >> > me
> >> > with.
> >> >
> >> >
> >>
> >>
> >> Make sure of the following:
> >>
> >> Run only when logged in = disabled
> >> Enabled = enabled
> >> Wake the computer to run this task = enabled
> >>
> >>
>
>
> All scheduled tasks run under an account. If you want to ensure the
> script has the same permissions as Administrator then make sure you
> specify the Administrator account and its correct login password in the
> security for the scheduled task.
>
> So what does the log show for that scheduled task? Advanced -> View Log
> menu.
>
> Joy! I looked at the log; there was no entry, apparently because I ran it the last time as a .cmd file - one of the changes I tried.
So, I changed it back to a .bat file and carefully rescheduled the run. It
worked!
Then I changed the network storage path back to the mapped letters. UNC is
supposed to be recognized, but it failed. Then I went back to the
\\networkname\.. path and it worked again.
Apparently it likes the "Wake the computer..." enabled and the non-UNC path.
To answer your question about the log, it is pasted below (0) is good; (1)
is not:
"ctest.job" (ctest.bat)
Finished 7/14/2007 2:45:00 PM
Result: The task completed with an exit code of (0).
Many thanks for your help.
|