• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1240
  • Last Modified:

Windows SBS 2008 Task Scheduler for Simple Batch File

I am trying to setup a simple task to run a batch script at a set time every day and keep getting 0x1 and the batch fille script is not executing.  It is set to run even if no one is logged in, using the administrator account, the permissions are set on the script file and folder, everything seems right, even when I execute a run now, I get a 0x1 failure and the script does not work.  It is a simple script using winscp to access a linux server for a file download.  The script works perfect when I double click on the batch file or run it from command line.   I have rebuilt the task thinking that may help...  but didn't.  Any advice?  Thanks
0
tech-
Asked:
tech-
  • 2
1 Solution
 
Big_SteefCommented:
first, log in with the user who is supposed to be running the script as, open the command prompt and run the script from there. if it works then delete and re-create the job. Be sure to run everything with Admin rights (under UAC)
0
 
tech-Author Commented:
It was created and tested by the administrator account which is the same one in the scheduler.
0
 
tech-Author Commented:
I updated to Service Pack 2 and installed a bunch of other updates and now it works.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now