Solved

How to start a service from CMD with start parameters

Posted on 2009-07-14
4
592 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 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
Windows-Based File Server (SMB) and Point in Time Backups (Shadow Copy?) 10 82
SolarWind and DNS Server 12 106
MS Endpoint Protection 2 105
Enterprise Mode 4 71
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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