Hi
I have a requirement to stop two services to let my
backup software run, and then to restart them after that.
Can any-one show me a script that will do this for me; or
any other suitable method?
Thanks in advance
Harry

Re: Script to stop and start two services by Chad

Chad
Fri Oct 24 02:39:16 CDT 2003

Hi Harry -

you can use the 'net stop' and 'net start' commands in a batch file. If
you're using a batch file to run your backups (like the one from Mariette's
site -
http://www.smallbizserver.net/SBS2000/How_do_I_backup_my_server.aspx), you
can simply add the 'net stop <servicename>' and 'net start <servicename>' to
that batch file.

HTH!

--
Chad A Gross [SBS-MVP]

SBS ROCKS!!!


Harry wrote:
> Hi
> I have a requirement to stop two services to let my
> backup software run, and then to restart them after that.
> Can any-one show me a script that will do this for me; or
> any other suitable method?
> Thanks in advance
> Harry



Re: Script to stop and start two services by Marina

Marina
Fri Oct 24 02:41:36 CDT 2003

Which services need to be stopped? Which backupprogram are you running?

Marina

"Harry" <anonymous@discussions.microsoft.com> schreef in bericht
news:06c601c399ff$e577f4e0$a501280a@phx.gbl...
> Hi
> I have a requirement to stop two services to let my
> backup software run, and then to restart them after that.
> Can any-one show me a script that will do this for me; or
> any other suitable method?
> Thanks in advance
> Harry



Re: Script to stop and start two services by James

James
Fri Oct 24 02:47:51 CDT 2003

Chad A Gross [SBS-MVP] wrote:
> Hi Harry -
>
> you can use the 'net stop' and 'net start' commands in a batch file.
> If you're using a batch file to run your backups (like the one from
> Mariette's site -
> http://www.smallbizserver.net/SBS2000/How_do_I_backup_my_server.aspx),
> you can simply add the 'net stop <servicename>' and 'net start
> <servicename>' to that batch file.

...and if you're using the long service name, it needs to be in quotes if
there are spaces in the name; if you use the short name this isn't an issue.
This means that

net stop "microsoft exchange information store"

does exactly the same as

net stop msexchangeis

James



Re: Script to stop and start two services by harry

harry
Fri Oct 24 03:14:38 CDT 2003

Thanks James and Chad
I will try this. I do not use a batch file (I think), but
just have it scheduled out of the backup software (Backup
Exec SBS v9). There is an option for pre and post backup
commands, so i couold try popping it in there I guess
Harry
>-----Original Message-----
>Chad A Gross [SBS-MVP] wrote:
>> Hi Harry -
>>
>> you can use the 'net stop' and 'net start' commands in
a batch file.
>> If you're using a batch file to run your backups (like
the one from
>> Mariette's site -
>>
http://www.smallbizserver.net/SBS2000/How_do_I_backup_my_s
erver.aspx),
>> you can simply add the 'net stop <servicename>'
and 'net start
>> <servicename>' to that batch file.
>
>....and if you're using the long service name, it needs
to be in quotes if
>there are spaces in the name; if you use the short name
this isn't an issue.
>This means that
>
>net stop "microsoft exchange information store"
>
>does exactly the same as
>
>net stop msexchangeis
>
>James
>
>
>.
>

Re: Script to stop and start two services by Harry

Harry
Fri Oct 24 03:16:58 CDT 2003

Hi Marina
I use Backup Exec SBS v9. The sevices are GFI
MailEssentials attendant (msecatt.exe)and GFI
PoP2Exchange (pop2exch.exe).
I will try the net stop and net start in the pre and post
commands of the BE shceduler.
Thanks
Harry


>-----Original Message-----
>Which services need to be stopped? Which backupprogram
are you running?
>
>Marina
>
>"Harry" <anonymous@discussions.microsoft.com> schreef in
bericht
>news:06c601c399ff$e577f4e0$a501280a@phx.gbl...
>> Hi
>> I have a requirement to stop two services to let my
>> backup software run, and then to restart them after
that.
>> Can any-one show me a script that will do this for me;
or
>> any other suitable method?
>> Thanks in advance
>> Harry
>
>
>.
>