Solved

Start service using batch file

Posted on 2014-11-25
5
175 Views
Last Modified: 2014-11-26
Running Small Business Server 2008 on ML350 G5 server.
I need to start a service at a certain time each day.  I am not a computer expert.  I have created a batch file which will start the service at 02:00 am.  However, it needs to run as administrator.  Somehow I need to elevate the privilege .  I like my sleep and I don't want to wake up at 02:00 and elevate the batch file .   Someone must have figured out how to do this.

Remember, I am not an expert so please provide detailed instructions on how to raise the privilege so this batch file can run.  Thank you for your help.
0
Comment
Question by:donpick
[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
5 Comments
 
LVL 82

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 157 total points
ID: 40466195
use the task scheduler to start the batch file.
0
 
LVL 23

Accepted Solution

by:
Michael Fowler earned 167 total points
ID: 40466196
Use windows task scheduler. With this built in tool you can set the time, account to run under and other options.

http://technet.microsoft.com/en-us/library/cc721871.aspx
0
 
LVL 29

Assisted Solution

by:becraig
becraig earned 176 total points
ID: 40466213
Alternatively if there is an absolute requirement for a user name and password you can set this with your scheduled task and set run level RL to highest.


Command line would look like

Schtasks /ru username /rp password /RL highest /tn taskname /tr c:\somefile.bat
0
 
LVL 29

Expert Comment

by:becraig
ID: 40466214
Of course you'd have to edit the command for daily as well as time to run
0
 

Author Closing Comment

by:donpick
ID: 40468382
Thank you all for your prompt response.   I pay for this service so I appreciate prompt responses.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Suggested Courses

621 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