How do I have Presto create a Windows service with a specific user name and password?
-
19-06-2021 - |
Frage
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.
Lösung
There are typically three steps to actually creating the service:
First, actually create the service:
/c sc create "$(serviceName) $(serviceNameSuffix)" binPath= "$(servicePath)"
Second, configure the user and password:
/c sc config "$(serviceName) $(serviceNameSuffix)" obj= "$(account)" password= "$(password)" start= auto
Third, start the service:
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.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow