Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change service name

Status
Not open for further replies.
Apr 18, 2003
250
US
I have a service called BPS brio_platform1 & BPS brio_platform2. The OS gave both the name BPS. I want to use a batch file to stop and start both services in a given order (say #2, then #1). How can I do so if both of the services go by the same name? Is there a way to change them to BPS1 & BPS2?
 
you can use the sc.exe command from the resource kit. Unfortunately, i dont know of a wat to change the display name without deleting and recreating the two services. play with sc and see if you can figure it out. I can help additional if need be. I know i could delete the two and recreate in 2 mins, just need to know all the details. Try this.

sc qc "BPS brio_platform1"

sc qc "BPS brio_platform2"

post the details and i can help from there....

HTH - Stiddy
 
BTW, you may not even need to delete the two. It is impossible for both services to have the exact same name. it appears they dont. so your batch file could e as easy as:


sc stop "BPS brio_platform2"
sc stop "BPS brio_platform1"

sc start "BPS brio_platform2"
sc start "BPS brio_platform1"

echo "all services a go...."

HTH - Stiddy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top