Solved

Start service using batch file

Posted on 2014-11-25
5
158 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
5 Comments
 
LVL 78

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:
Michael74 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 28

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 28

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Because virtualization becomes more and more common, and, with Microsoft Hyper-V included in Windows Server at no additional costs, and, most server hardware nowadays is more than capable of running a physical Small Business Server (SBS) 2008 or 201…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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…

708 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

14 Experts available now in Live!

Get 1:1 Help Now