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!

link|improve this question

71% accept rate
feedback

2 Answers

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.

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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