Pergunta

How do I have Presto create a Windows service with a specific user name and password? I'd post what I tried, but I'm not really sure where to start.

Foi útil?

Solução

There are typically three steps to actually creating the service:

enter image description here

First, actually create the service:

/c sc create "$(serviceName) $(serviceNameSuffix)" binPath= "$(servicePath)"

enter image description here

Second, configure the user and password:

/c sc config "$(serviceName) $(serviceNameSuffix)" obj= "$(account)" password= "$(password)" start= auto

enter image description here

Third, start the service:

enter image description here

As you can see, you're simply using a Window's command prompt to do each of these. Whatever you can do at a command prompt, you can do in Presto.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top