Solved

I have created a batch file to back up a phone system on the clients Windows 7 pro server.  When I run the batch file manually it works like it should.  But it will not work with task scheduler.

Posted on 2015-01-14
6
164 Views
Last Modified: 2015-01-14
I have created a batch file to back up a phone system on the clients Windows 7 pro server.  When I run the batch file manually it works like it should.  But it will not work with task scheduler.  If I right click on the batch file and click on open or Run as administrator it works like it should.  But when I go to automate it using task scheduler it fails to complete and creates an empty file.  From start to finish it only takes a few minutes.  But the task scheduler does not complete the job.  It does not stop at all.
0
Comment
Question by:tcsjeff
  • 3
  • 2
6 Comments
 
LVL 69

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40549348
Could you show the batch file?
Are you using a valid and privileged user for the task?
Did you check "Run with highest privileges" in the task?
0
 

Author Comment

by:tcsjeff
ID: 40549371
Qlemo
Thank you for your fast reply.  Please explain what you mean by showing the batch file.    There is only one user assigned to the server so I am assuming  it is a valid user.  I created the batch file and it is the same type I have used on other servers and it worked.  The box "Run with highest privileges was not checked so I will check that and try it again.  thanks

Jeff
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 40549380
"Showing the batch file" means to post it here, either as text enclosed in CODE tags, or as file attachment. Without knowing what the batch does, it is difficult to give advice. E.g. does it use a file share or mapped network drive?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 33

Expert Comment

by:it_saige
ID: 40549743
Along with Qlemo's advice, is the user assigned to the Logon as batch policy (task scheduler *should* have taken care of this for you):Capture.JPG-saige-
0
 

Author Comment

by:tcsjeff
ID: 40549788
Qlemo,
Checking the box "run with highest privileges" seems to have solved the issue.  Not sure why as I do not totally understand that but it worked anyway.  Thank you for your help!
Jeff
0
 

Author Closing Comment

by:tcsjeff
ID: 40549790
Thanks for the fast and excellent advice!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question