Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need a way to schedule a service so it can only start between certain hours on a Windows machine (Windows Home Server which is roughly W2k3.)

All help gratefully received!

share|improve this question

2 Answers 2

up vote 6 down vote accepted

You can use windows task scheduler to run net start service and net stop service at the appropriate times.

share|improve this answer

Orihara is correct, but here is some additional detail that might help.

You can create .cmd or .bat files that perform the net start and net stop command. At that point you can use the Windows Task Scheduler (usually under Accessories/System Tools) to schedule the commands start and stop time. You can also use "at" in the command line to schedule the commands.

Hope that helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.