Solved

How to start a service from CMD with start parameters

Posted on 2009-07-14
4
568 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

863 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

24 Experts available now in Live!

Get 1:1 Help Now