Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Script to start and stop services

Posted on 2010-08-20
8
Medium Priority
?
531 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

636 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