[ExchangeList] Re: off topic - service restart batch

  • From: "Carl Houseman" <c.houseman@xxxxxxxxx>
  • To: <exchangelist@xxxxxxxxxxxxx>
  • Date: Mon, 16 Oct 2006 18:32:50 -0400

You must restart in the opposite order of stopping.
 

net stop SurfControl Web Filter Service

net stop SurfControl Web Filter Remote Administration

net stop MSSQLSERVER

net start MSSQLSERVER

net start SurfControl Web Filter Remote Administration

net start SurfControl Web Filter Service


  _____  

From: exchangelist-bounce@xxxxxxxxxxxxx
[mailto:exchangelist-bounce@xxxxxxxxxxxxx] On Behalf Of Ara Avvali
Sent: Monday, October 16, 2006 6:27 PM
To: exchangelist@xxxxxxxxxxxxx
Subject: [ExchangeList] Re: off topic - service restart batch



Hi Carl,

I have the net start command in batch file. Problem happens at stop point
(obviously stop then start) this is the batch file. I would try the /y
option and see if that helps. Thanks 

 

net stop SurfControl Web Filter Service

net stop SurfControl Web Filter Remote Administration

net stop MSSQLSERVER

net start MSSQLSERVER

net start SurfControl Web Filter Service

net start SurfControl Web Filter Remote Administration

 

  _____  

From: exchangelist-bounce@xxxxxxxxxxxxx
[mailto:exchangelist-bounce@xxxxxxxxxxxxx] On Behalf Of Carl Houseman
Sent: Monday, October 16, 2006 3:18 PM
To: exchangelist@xxxxxxxxxxxxx; isalist@xxxxxxxxxxxxx
Subject: [ExchangeList] Re: off topic - service restart batch

 

Usually adding  /y  (e.g. "net start /y xxxxx") pre-answers questions with
yes for many command utilities that would have stopped and asked.

 

But myself, I would simply add another NET START for the required service in
the batch/cmd file prior to NET START of the service you are controlling.

 

Carl

 

  _____  

From: exchangelist-bounce@xxxxxxxxxxxxx
[mailto:exchangelist-bounce@xxxxxxxxxxxxx] On Behalf Of Ara Avvali
Sent: Monday, October 16, 2006 6:03 PM
To: isalist@xxxxxxxxxxxxx; exchangelist@xxxxxxxxxxxxx
Subject: [ExchangeList] off topic - service restart batch

Greetings,

 

I am creating a batch so some services are restarted in a certain time.
Adding it to schedule task was not successful. Running it manually I noticed
it stops if there is a dependency service asking me if I want to restart the
dependent service too. Checking on internet and help for net stop I couldn't
find a switch that answers yes to question. Anyone knows how to force it to
answer yes to the question? Thanks 

Other related posts: