troubleshooting Question

Windows Task Scheduler executing batch files

Avatar of bborner
bbornerFlag for United States of America asked on
SBSMicrosoft Legacy OSMicrosoft Server OS
9 Comments1 Solution2497 ViewsLast Modified:
Windows Small Business Server 2011 (64 bit server)

Using task scheduler i scheduled a batch file to run. The contents are:
xcopy j:\*.* g:\data\backup\_fullback\j\*.* /S /C /R /Y /I
xcopy q:\*.* g:\data\backup\_fullback\q\*.* /S /C /R /Y /I

The name is fullbackup.cmd  (also tried fullbackup.bat)

When checked the day following the scheduled date, the scheduled tasks show that the batch file execution succeeded.  However none of the files were copied.

Double clicking on the same batch file outside of the task scheduler results in a successful execution.

Task Scheduler launch task "\Full Backup" , instance "C:\Windows\SYSTEM32\cmd.exe"  with process ID 40096.

Task Scheduler successfully completed task "\Full Backup" , instance "{3ee04b3c-cdf0-4f87-85fc-979e21a6b07a}" , action "C:\Windows\SYSTEM32\cmd.exe" with return code 1.

Task Scheduler successfully finished "{3ee04b3c-cdf0-4f87-85fc-979e21a6b07a}" instance of the "\Full Backup" task for user "FGIDOMAIN\bruce".

Any ideas?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros