cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
BenzLiu
Level 4

How to set the start type of windows service

Hi,
How to set the start type of service to manual by installscript?
The ServiceAddService method has not the param, and the result of using it the start type of service is automatic always.
And I don't know what method can solve this problem.
Labels (1)
0 Kudos
(2) Replies
rguggisberg
Level 13

Put the following line in a bat file and launch it from your CA.
SC CONFIG NameOfService start= auto
0 Kudos
RobertDickau
Flexera Alumni

Perhaps see the documentation for ServiceInitParams and SERVICE_IS_PARAMS.
0 Kudos