?
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
Medium Priority
?
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 70

Accepted Solution

by:
Qlemo earned 2000 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 70

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
What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

 
LVL 34

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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
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.
Suggested Courses

801 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