Scheduled Task

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

I am trying to get scheduled tasks to work all the time but for some reason
it is not easy. I tried to schedule a task via wizard and it worked great.
The only problem is that it only works if the user that the scheduled taks is
runnning for has the credentials in. Everytime a person changes their
password the task stops funtioning. I tried using the AT command but it does
not work without credentials I am assuming. This is the command

AT 00:00 /INTEREACTIVE /EVERY:M,T,W,Th.F C:\mydoc.bat

It returns an error 4 code. I tried just setting the credentials to be an
administrator but it doesn't work either. Any help really appreciated.

Marcos
 
Marcos said:
Hello all,

I am trying to get scheduled tasks to work all the time but for some reason
it is not easy. I tried to schedule a task via wizard and it worked great.
The only problem is that it only works if the user that the scheduled taks is
runnning for has the credentials in. Everytime a person changes their
password the task stops funtioning. I tried using the AT command but it does
not work without credentials I am assuming. This is the command

AT 00:00 /INTEREACTIVE /EVERY:M,T,W,Th.F C:\mydoc.bat

It returns an error 4 code. I tried just setting the credentials to be an
administrator but it doesn't work either. Any help really appreciated.

Marcos

The reference to c:\Mydoc.bat tells us nothing. What's the contents
of this file?
 
sorry about that. The content of the file is this "xcopy
C:\DOCUME~1\administrator\MYDOCU~1\*.* H:\administrator\*.* /C /V /F /I /E /K
/H /Y >C:\copylog.txt"

I am trying to use it wihtout having to put in any credentials. It is a lot
easier for me to telnet into the machine and then start the task that way.
 
If you schedule this job with at.exe then it will run under the System
account. This account has no access rights to networked resources.

You should do this:
- Create an account used especially for running scheduled jobs but
never for foreground sessions.
- Give this account sufficient privileges to access all the required
resources (e.g. drive H:).
- Use the Task Scheduler to schedule the job.
- Specify the above account when scheduling the job.

I also suggest you remove some of the switches from the xcopy command.
They appear to be superfluous.

xcopy "C:\Documents and Settings\Administrator\My documents"
"H:\Administrator\"
/C /E /K /H /Y >C:\copylog.txt"
 
Thanks for the info. Is there no way to use the AT command with credentials.
As you probably know it is a lot easier to add things via telnet than it
would by going to each individual computer.


Thanks again
Marcos
 
The "Advanced" tab in the Task Scheduler lets you set the account
to be used by at.exe.
 
Back
Top