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
161 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CPU at 100% usage, why? 27 129
Windows Updates question 2 28
Python 3.5.2 32 virtualenv problems 3 34
Choice of Win 7 or Win 10 for New Dell 5810 Workstation 13 45
First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
OfficeMate Freezes on login or does not load after login credentials are input.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

785 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