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
158 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 68

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 68

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 32

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

By now, it is common knowledge that Windows 7 has been successfully been able to live up to the hype of being touted as Microsoft’s most anticipated O.S. ever. This latest 2010 Windows release builds up on its predecessor’s positives, adding new…
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 give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now