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
162 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on 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.

839 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