Link to home
Start Free TrialLog in
Avatar of ptea
ptea

asked on

How to start a service from CMD with start parameters

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
Avatar of rhinoceros
rhinoceros

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
https://www.experts-exchange.com/questions/23071649/Restart-network-pc's-with-psshutdown-or-psexec.html
http://forum.sysinternals.com/forum_posts.asp?TID=11531&PN=1
Avatar of ptea

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of rhinoceros
rhinoceros

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ptea

ASKER

great - thanks