Solved

How to start a service from CMD with start parameters

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add user group members to local Administrators 2 55
heat agent push through GPO 2 63
Event ID: 5719 / Source: NETLOGON 9 146
Alert on Server memory 2 38
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…
Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 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