Schedule Start/Stop of services

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
 
P

Pegasus \(MVP\)

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"
 
J

Jerold Schulman

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top