Schedule Start/Stop of services

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings,

Using Windows 2000 Server, SP4 is there some way I can schedule the starting
and stopping of a service at certain times, rather than just at startup or
manually?

Why do I want to do this?
I need to backup 2 files from my server to a Windows XP PRO wks using the MS
Backup program on that wks. However, in order to back up the 2 files, they
must be closed (i.e. not in use), which is done by stopping a particular
service on the server. The basic startegy is, during the wee hours of the
night, to stop the service, backup the 2 files to the wks, then restart the
service; ideally, all done automatically with a service scheduler.

Thanks for any input!!

Bill Cufflin
 
Bill Cufflin said:
Greetings,

Using Windows 2000 Server, SP4 is there some way I can schedule the starting
and stopping of a service at certain times, rather than just at startup or
manually?

Why do I want to do this?
I need to backup 2 files from my server to a Windows XP PRO wks using the MS
Backup program on that wks. However, in order to back up the 2 files, they
must be closed (i.e. not in use), which is done by stopping a particular
service on the server. The basic startegy is, during the wee hours of the
night, to stop the service, backup the 2 files to the wks, then restart the
service; ideally, all done automatically with a service scheduler.

Thanks for any input!!

Bill Cufflin

Use the Task Scheduler to schedule this batch file:
@echo off
net start "Some Service"
net stop "Some Service"
 
Greetings,

Using Windows 2000 Server, SP4 is there some way I can schedule the starting
and stopping of a service at certain times, rather than just at startup or
manually?

Why do I want to do this?
I need to backup 2 files from my server to a Windows XP PRO wks using the MS
Backup program on that wks. However, in order to back up the 2 files, they
must be closed (i.e. not in use), which is done by stopping a particular
service on the server. The basic startegy is, during the wee hours of the
night, to stop the service, backup the 2 files to the wks, then restart the
service; ideally, all done automatically with a service scheduler.

Thanks for any input!!

Bill Cufflin

On the workstation, schedule the following "

@echo off
sc \\Server STOP ServiceShortName
ntbackup.exe backup .... (see tip 2265 in the 'Tips & Tricks' at http://www.jsifaq.com)
sc \\Server Start ServiceShortName



Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Back
Top