Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Running a batch file with scheduler

Reply
Thread Tools Display Modes

Running a batch file with scheduler

 
 
simonc
Guest
Posts: n/a

 
      01-28-2009
All this Vista security is driving me insane. I've created a batch file. If I
double click on it in Explorer it runs fine. If I try to start it as a
scheduled task it won't start. Please could someone explain what I need to do
in scheduler to make the batch file run. There is only one user on the
computer who has administrator rights. I've checked the box in scheduler for
Run with the highest privileges, and it still doesn't work.

Grateful for advice.
 
Reply With Quote
 
 
 
 
The Marker
Guest
Posts: n/a

 
      01-28-2009

a.. If you leave the password blank and you want the task to run when you
are logged on, open the task. On the Task tab, select the Run only if logged
on check box. The task will run at its scheduled time when the user who
created the task is logged on to the computer.


"simonc" <> wrote in message
news:B9C56C18-374F-498F-8F90-...
> All this Vista security is driving me insane. I've created a batch file.
> If I
> double click on it in Explorer it runs fine. If I try to start it as a
> scheduled task it won't start. Please could someone explain what I need to
> do
> in scheduler to make the batch file run. There is only one user on the
> computer who has administrator rights. I've checked the box in scheduler
> for
> Run with the highest privileges, and it still doesn't work.
>
> Grateful for advice.



 
Reply With Quote
 
Mike Brannigan
Guest
Posts: n/a

 
      01-28-2009
"simonc" <> wrote in message
news:B9C56C18-374F-498F-8F90-...
> All this Vista security is driving me insane. I've created a batch file.
> If I
> double click on it in Explorer it runs fine. If I try to start it as a
> scheduled task it won't start. Please could someone explain what I need to
> do
> in scheduler to make the batch file run. There is only one user on the
> computer who has administrator rights. I've checked the box in scheduler
> for
> Run with the highest privileges, and it still doesn't work.
>
> Grateful for advice.


What are you actually telling the scheduler to run?
You cannot just say run whatever.cmd or whatever.bat
You need to provide a complete command line to execute the interpreter and
call the batch file.
--
Mike Brannigan

 
Reply With Quote
 
simonc
Guest
Posts: n/a

 
      01-28-2009
It all worked when I changed the user account for running the task to
Administrators, this despite the fact that the user account I was using
before was a member of the Administrators group. Is this why Vista is driving
a lot of people mad?

"The Marker" wrote:

>
> a.. If you leave the password blank and you want the task to run when you
> are logged on, open the task. On the Task tab, select the Run only if logged
> on check box. The task will run at its scheduled time when the user who
> created the task is logged on to the computer.
>
>
> "simonc" <> wrote in message
> news:B9C56C18-374F-498F-8F90-...
> > All this Vista security is driving me insane. I've created a batch file.
> > If I
> > double click on it in Explorer it runs fine. If I try to start it as a
> > scheduled task it won't start. Please could someone explain what I need to
> > do
> > in scheduler to make the batch file run. There is only one user on the
> > computer who has administrator rights. I've checked the box in scheduler
> > for
> > Run with the highest privileges, and it still doesn't work.
> >
> > Grateful for advice.

>
>
>

 
Reply With Quote
 
Troodon
Guest
Posts: n/a

 
      01-28-2009

The issue seems to be this: 'Windows Vista Home Basic, Windows Vist
Home Premium, and Windows Vista Starter save user credentials only fo
the current session' (http://support.microsoft.com/kb/931711

simonc;952589 Wrote:
> All this Vista security is driving me insane. I've created a batch file
> If
> double click on it in Explorer it runs fine. If I try to start it as
> scheduled task it won't start. Please could someone explain what I nee
> to d
> in scheduler to make the batch file run. There is only one user on th
> computer who has administrator rights. I've checked the box i
> scheduler fo
> Run with the highest privileges, and it still doesn't work
>
> Grateful for advice


--
Troodon
 
Reply With Quote
 
Kerry Brown
Guest
Posts: n/a

 
      01-29-2009
Does the account have a password? Since Windows 2000 scheduled tasks need an
account with a password in order to work properly.

--
Kerry Brown
MS-MVP - Windows Desktop Experience: Systems Administration
http://www.vistahelp.ca/phpBB2/
http://vistahelpca.blogspot.com/


"simonc" <> wrote in message
news:B9C56C18-374F-498F-8F90-...
> All this Vista security is driving me insane. I've created a batch file.
> If I
> double click on it in Explorer it runs fine. If I try to start it as a
> scheduled task it won't start. Please could someone explain what I need to
> do
> in scheduler to make the batch file run. There is only one user on the
> computer who has administrator rights. I've checked the box in scheduler
> for
> Run with the highest privileges, and it still doesn't work.
>
> Grateful for advice.


 
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
Will computer sleep while batch file is running? hannaxbear Windows Vista General Discussion 4 08-17-2008 12:52 PM
Scheduler does not run batch file and can't run as an administrator eganders Windows Vista General Discussion 1 08-09-2008 01:47 PM
Vista Task Scheduler - Batch File MCM Windows Vista General Discussion 2 06-27-2008 07:30 PM
Task Scheduler Returned Error 0x2 While Running Batch File lqd1967 Windows Vista Administration 0 06-09-2008 11:00 AM
Task Scheduler and Robocopy Batch Job bobneedshelp Windows Vista General Discussion 5 11-29-2007 03:28 PM



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