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

x
?
Solved

How to start a service from CMD with start parameters

Posted on 2009-07-14
4
Medium Priority
?
602 Views
Last Modified: 2012-05-07
Hi there,

in the services.msc I can start a service and provide it with specific start parameters. But how can I do that from the command line? With net start or sc I'm not able to do that, RegChange is also not an option because I have to do this one time on 100+ servers.

Cheerio
0
Comment
Question by:ptea
[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
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:rhinoceros
ID: 24847403
You are able to try to use "psexec.exe + One of Server List text file"
(* you should have domain adminstrator access right.... )

- Sysinternals' (now Microsoft) psexec utility from
http://technet.microsoft.com/en-us/sysinternals/default.aspx

- Sample
http://www.experts-exchange.com/Programming/Languages/Q_23071649.html
http://forum.sysinternals.com/forum_posts.asp?TID=11531&PN=1
0
 

Author Comment

by:ptea
ID: 24847871
Thanks for your response - It's not a problem for me to distribute the service restart over several servers. My question is - how to provide the start parameters from the command line.
0
 
LVL 13

Accepted Solution

by:
rhinoceros earned 375 total points
ID: 24851226
It may good for you...

Passing Windows Service Parameters from a Command Line
http://www-01.ibm.com/support/docview.wss?uid=swg21210165

OR

http://www.theserverside.net/discussions/thread.tss?thread_id=24994
0
 

Author Closing Comment

by:ptea
ID: 31603163
great - thanks
0

Featured Post

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!

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
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