Solved

How to start a service from CMD with start parameters

Posted on 2009-07-14
4
558 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
  • 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 125 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now