0
I have a service running on Windows, but the client needs the same service to work on the same server to make different routines. I came across the following problem, if I install the same service with the same name it alerts that I already have a service installed. I used the following command from SC.exe
SC CREATE <name> binpath= <caminho> start= auto displayname= "<displayname>"
I did not succeed in trying to install, searching the internet I noticed that must inform the domain and password so I can install a multiple instance of the service.
SC CREATE <name> binpath= <caminho> start= auto displayname= "<displayname>" obj= "nome do dominio" password= "senha do utilizador"
I wanted to see if anyone has been through the same experience and could help me solve it. Thank you
How about placing a scheduled task? By task scheduler you can put to run when initializing the computer or even at user login.
– Laércio Lopes
@Laérciolopes for me to do this the two services must be installed, right?
– Jefferson Rudolf
No, you don’t need to have the services installed, just create the tasks by the task scheduler. If the OS is Windows 7 or higher, run the
taskschd.msc
. Or go to Control Panel > Administrative Tools > Task Scheduler. If you are going to perform the task without needing the user to be logged in you need to check the "Run whether the user is logged in or not" option. You will need to enter the user password and if you change the password later you have to click to change the task and then OK to save the new password.– Laércio Lopes
With this I can create multiple instances of the service?... with the same name running on the same machine
– Jefferson Rudolf
If the executable allows you can yes, but a scheduled fare will not be a service.
– Laércio Lopes