<< Click to Display Table of Contents >> Navigation: Windows Tools > servicescheduler > Configuration |
The ServiceScheduler service is configured with the configuration file servicescheduler.ini which needs to be located in the same directory as servicescheduler.exe (the installation directory by default).
Lines starting with a hash # or and exclamation mark ! will be treated as comments and not interpreted. The syntax for the actual instructions is as follows:
[Service Name],[Service Action],[Time],[Mon.Tue.Wed...Sun]
Service Name |
The name of the service. This is not the display name of the service, but the real name of the service
|
Service Action |
The action you want to be taken. Actions include:
•start •stop •restart •pause •continue
|
Time |
The time at which the action should be performed. Note that the European time format is required, for example:
02:50 11:35 15:30 21:00
|
Weekdays |
The weekdays on which the action should be performed. You may specify between one and seven weekdays. Weekdays include:
•Mon •Tue •Wed •Thu •Fri •Sat •Sun
Multiple weekdays have to separated by a dot (.). Please see below for configuration examples. |
Important: You will need to stop and restart the ServiceScheduler service whenever you make changes to the configuration file servicescheduler.ini. |
Configuration Examples
Example 1: Stop the Print Spooler ("spooler") service weekdays at 10pm, and start the service again at 10:15pm
spooler,stop,22:00,Mon.Tue.Wed.Thu.Fri
spooler,start,22:15,Mon.Tue.Wed.Thu.Fri
Example 2: Stop the MS SQL Server service daily at 3am and restart it again at 4am
MSSQLServer,stop,03:00,Mon.Tue.Wed.Thu.Fri.Sat.Sun
MSSQLServer,start,04:00,Mon.Tue.Wed.Thu.Fri.Sat.Sun
If you only know the service display name but not the service name, then open regedit.exe and navigate to HKLM\System\CurrentControlSet\Services to determine the service name. |