?
Solved

Script to start and stop services

Posted on 2010-08-20
8
Medium Priority
?
530 Views
Last Modified: 2012-05-10
I need a script/batch file to stop / start blackberry services in a certain order on a windows 2003 server
0
Comment
Question by:Martin Gerlach
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 10

Expert Comment

by:jorlando66
ID: 33484926
net stop service name /parameters etc...
0
 
LVL 10

Accepted Solution

by:
jorlando66 earned 2000 total points
ID: 33484982
sc start "BlackBerry Router"
sc start "BlackBerry Dispatcher"
sc start "BlackBerry Controller"
sc start "BlackBerry MDS Connection Service"
sc start "BlackBerry Policy Service"
sc start BBAttachServer
sc start "BlackBerry SyncServer"
sc start "BlackBerry

In that order.  substitute "stop"  to stop services.
0
 

Author Comment

by:Martin Gerlach
ID: 33493157
@Jorlando66

This works great, for some reason only the following command dosnt work

sc stop "BlackBerry Alert"

i am getting the follwoing error:

C:\Documents and Settings\besadmin\Desktop>sc start "BlackBerry Alert"
[SC] StartService: OpenService FAILED 1060:

The specified service does not exist as an installed service.

Any idea why?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:sharjeel ashraf
ID: 33493496
check the spelling in services console and make sure the quotes are in the right place.
also try to stop the services as you have listed in the batch file, sometimes you need to stop and start them in a particular order.
0
 
LVL 10

Expert Comment

by:jorlando66
ID: 33497900
Is the serbice actually installed. If it isnt you don't need the line
0
 
LVL 27

Expert Comment

by:Steve
ID: 33502411
either the service doesnt exist or you've spelt its name incorrectly.
the name to use for staring/stopping is not necessarily the one dispalyed in the main services.msc window. right click the service and use the name next to 'service name'
0
 
LVL 10

Expert Comment

by:jorlando66
ID: 33502804
The names I gave you are the names to use.  If you get that error the service is not installed.  Dont use the line giving you the error..It can be ignored.
0
 
LVL 1

Expert Comment

by:jasonlcss
ID: 33522014
you will probably find that the service giving you the error is a calling service and is only activated by the blackberry application when it is needed.

So it is safe to say that you can use jorlando66's script entries, just remove the file entry that is giving hassels and it should run fine.

Check it out and let us know.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question