admin管理员组文章数量:1192554
I can not make the command line "sc" to start a service in a remote server, it fails via the 1060 error. To check the correct service name, the service was started via the command line in the target server succesfully. To check networking and permissions, the service was started remotely using the "services.msc" windows app, without any problem.
In this particular case, is needed that the "sc" remote starts works as expected, because is used internally by an application to start the service on remote this way.
On the local server the following is command line used and the result:
*C:\Users\Administrador>sc \WIN-O6F2V54M862 start “CIMPLICITY” [SC] StartService: OpenService ERROR 1060:
El servicio especificado no existe como servicio instalado.
C:\Users\Administrador>*
(The message in spanish state "service does not exist")
To verify that the service name on the target server the command run locally and it was successful:
* C:\Users\Administrador>sc start "CIMPLICITY"
NOMBRE_SERVICIO: CIMPLICITY
TIPO : 110 WIN32_OWN_PROCESS (interactive)
ESTADO : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
CÓD_SALIDA_WIN32 : 0 (0x0)
CÓD_SALIDA_SERVICIO: 0 (0x0)
PUNTO_COMPROB. : 0x0
INDICACIÓN_INICIO : 0x7d0
PID : 2480
MARCAS :
C:\Users\Administrador>*
I can not make the command line "sc" to start a service in a remote server, it fails via the 1060 error. To check the correct service name, the service was started via the command line in the target server succesfully. To check networking and permissions, the service was started remotely using the "services.msc" windows app, without any problem.
In this particular case, is needed that the "sc" remote starts works as expected, because is used internally by an application to start the service on remote this way.
On the local server the following is command line used and the result:
*C:\Users\Administrador>sc \WIN-O6F2V54M862 start “CIMPLICITY” [SC] StartService: OpenService ERROR 1060:
El servicio especificado no existe como servicio instalado.
C:\Users\Administrador>*
(The message in spanish state "service does not exist")
To verify that the service name on the target server the command run locally and it was successful:
* C:\Users\Administrador>sc start "CIMPLICITY"
NOMBRE_SERVICIO: CIMPLICITY
TIPO : 110 WIN32_OWN_PROCESS (interactive)
ESTADO : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
CÓD_SALIDA_WIN32 : 0 (0x0)
CÓD_SALIDA_SERVICIO: 0 (0x0)
PUNTO_COMPROB. : 0x0
INDICACIÓN_INICIO : 0x7d0
PID : 2480
MARCAS :
C:\Users\Administrador>*
Share Improve this question edited Jan 24 at 18:48 Julio Navas asked Jan 24 at 18:44 Julio NavasJulio Navas 11 bronze badge1 Answer
Reset to default 0After some checking, with sc query, we realized that if we started the questioned service in the remote server FROM the remote server, it appears listed when a sc query was done in the local server. So, we tried to do the remote star, but not using quotes for the name of required service and works.
本文标签: Start service on remote server Windows server 2012 R2 via sc commandStack Overflow
版权声明:本文标题:Start service on remote server Windows server 2012 R2 via sc command - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738393335a2084362.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论